I have a dataset containing the following column:
date<BR>
2016-09-01<BR>
2016-10-05<BR>
2015-02-07<BR>
2017-02-18<BR>
2019-11-27<BR>
2020-01-24<BR>
2010-09-14<BR>
I want to select the rows from 1-10-2016 till now, and I have the following script:
df_selection=df[(df['date'] >= 2016-10-1)]<BR>
df_selection
But I get the following error with this script: Invalid comparison between dtype=datetime64[ns] and int
How can I make a correct selection? Thanks!