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