select only some rows pandas code example Example: select only some rows pandas df.loc[df['column_name'].isin(some_values)]