I have a column in a dataframe of type datetime64[ns]. I am trying to compare it to a date constant like below:
df_new=df_old[df_old['date_col'] > pd.to_datetime('2018-11-01')]
I get:
invalid type comparison
What did I do wrong?
I have a column in a dataframe of type datetime64[ns]. I am trying to compare it to a date constant like below:
df_new=df_old[df_old['date_col'] > pd.to_datetime('2018-11-01')]
I get:
invalid type comparison
What did I do wrong?