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