dataframe select entries that are in a list

141

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])]

Comments

Submit
0 Comments