Pandas Filtruj DataFrame, jeśli Elemnt jest w ALIST
In [30]:
df[df['id'].isin(['foo','bar'])]
Out[30]:
value id
0 1 foo
1 2 bar
Horrible Hoopoe
In [30]:
df[df['id'].isin(['foo','bar'])]
Out[30]:
value id
0 1 foo
1 2 bar