I have the following python code:
current_ts = datetime.datetime.now()
current_date = current_ts.date()
new_df = df[df.index >= current_date]
The df.index is a datetime64[ns] and when I run the code I get Invalid comparison between dtype=datetime64[ns] and date.
How can I convert the index into a date so that the comparison works?