1In [30]: df = pd.DataFrame({'subscriber_id':[1,2,3,4,5]})
2''' subscriber_id
3 0 1
4 1 2
5 2 3
6 3 4
7 4 5 '''
8
9mask = df['subscriber_id'].isin([2,4,5])
10''' 0 False
11 1 True
12 2 False
13 3 True
14 4 True '''
15
16df.loc[mask]
17''' subscriber_id
18 1 2
19 3 4
20 4 5 '''
21