Python- Temukan beberapa nilai di kolom

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