Answers for "dataframe select entries that are in a list"

0

dataframe select entries that are in a list

df = pd.DataFrame({'A': [5,6,3,4], 'B': [1,2,3,5]})
df[df['A'].isin([3, 6])]
Posted by: Guest on September-27-2021

Code answers related to "dataframe select entries that are in a list"

Python Answers by Framework

Browse Popular Code Answers by Language