I am dropping rows based on a datetime condition, I have it working with the following line
df.drop(df[df.index.date == datetime(2017,9,14).date()].index, inplace=True)
However when I actually run the code I am not passing a datetime(2017,9,14).date() for comparison I am passing a datetime.date(2017,9,14) . So the code would look something like this...
df.drop(df[df.index.date == datetime.date(2017,9,14)].index, inplace=True)
but that obviously throws a error :
"descriptor 'date' requires a 'datetime.datetime' object but received a 'int'"
what would be the best way to fix this problem to be able to compare dates.