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