I hava a dataframe with many columns, one of which (receivedtime) has been properly converted to datetime
id receivedtime
1 2020-09-08 00:35:12
2 2020-09-09 06:16:09
3 2020-09-10 12:47:04
4 2020-09-08 15:57:05
and so on. I want to select only those from a given day (this is similar to this post:subsets from a datetime column, which helps but dont work for me). I have tried to do a simple substetting:
df[df["receivedtime"]=="2020-09-10"]
but I got an empty dataframe in return. I believe it has to do with the hours minutes and seconds.Obviously one way is to strip that info from datetime, but I want to preserve the whole structure. I even tried using dt.datetime but nothing seems to work. What is wrong in here?
Any help is appreciated.