python- find multiple values in a column

31

df_values = df[df['myvar'].isin(['element_1', 'element_2'])]

Comments

Submit
0 Comments