1import pandas as pd
2
3a = ['2015-01-01' , '2015-02-01']
4
5df = pd.DataFrame(data={'date':['2015-01-01' , '2015-02-01', '2015-03-01' , '2015-04-01', '2015-05-01' , '2015-06-01']})
6
7print(df)
8# date
9#0 2015-01-01
10#1 2015-02-01
11#2 2015-03-01
12#3 2015-04-01
13#4 2015-05-01
14#5 2015-06-01
15
16df = df[~df['date'].isin(a)]
17
18print(df)
19# date
20#2 2015-03-01
21#3 2015-04-01
22#4 2015-05-01
23#5 2015-06-01