copy rows matching multiple values in python pandas code example
Example 1: panda select rows where column value inferior to
df.loc[df['column_name'] == some_value]
Example 2: python- find multiple values in a column
df_values = df[df['myvar'].isin(['element_1', 'element_2'])]