Trying to filter out one day from my data, when I try and run my code I get no results (which isn't accurate because there is data for that particular day).
This is the code I am using:
a['datetime'] = pd.to_datetime(a['datetime'])
start_date = pd.to_datetime('2019-09-01')
end_date = pd.to_datetime('2019-10-01')
sept = a[a['datetime'].between(start_date, end_date)]
day1 = pd.to_datetime('2019-09-11')
(sept['datetime'] == day1).sum()
Here is a sample of my data
3 2019-09-11 06:59:02.715641
13 2019-09-12 11:16:53.061871
24 2019-09-02 06:50:37.347313
27034 2019-09-15 11:57:34.582988
27163 2019-09-01 13:38:34.169917
31708 2019-09-17 07:45:50.693893
32883 2019-09-06 13:27:56.161920
33645 2019-09-17 10:02:11.010567
33657 2019-09-01 15:55:42.492608
57825 2019-09-17 11:25:19.405100
57836 2019-09-04 20:12:10.853341
57837 2019-09-04 20:12:00.959338