I have basic financial OHLCV data.
Datetime Open Volume date
0 2021-08-25 09:30:00-04:00 149.699997 3524920 2021-08-25
1 2021-08-25 09:35:00-04:00 149.699997 1424746 2021-08-25
2 2021-08-25 09:40:00-04:00 149.785004 1248013 2021-08-25
3 2021-08-25 09:45:00-04:00 149.649994 1208242 2021-08-25
4 2021-08-25 09:50:00-04:00 149.486603 1345607 2021-08-25
Let's say I want to select all the examples from one specific day.
df["Datetime"].eq("2021-08-25")
This doesn't work even though comparisons to string date work when you use lt or gt.
So I created the date column with
df["date"] = df["Datetime"].dt.date
This new column is than of object dtype yet:
df_n["date"].eq("2021-08-25")
Still doesn't work.