Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Whatever
python- find multiple values in a column
user1764381
Programming language:
Whatever
2021-03-24 22:39:56
0
Q:
python- find multiple values in a column
Hassan Ashas
Code:
Whatever
2021-07-21 14:59:03
df_values = df[df['myvar'].isin(['element_1', 'element_2'])]
0
Tags
python
value
multiple
find
values
Related
how to add the sum of multiple columns into another column in a dataframe
dataframe groupby multiple columns
New to Communities?
Join the community