Initial "ImportDate" datatype Initial Pandas Dataframe interested in "ImportDate
Problem statement -
I want to extract the data where "ImportDate" last till "1-1-2019". For eg - start_date to 1-1-2019. I tried converting "object" into "datetime64[ns] and wrote the code as
df[df['ImportDate'].between(4/26/2018, 1/1/2019)]
But resulted in an error while extracting the data:
"'>=' not supported between instances of 'str' and 'float"
Can anyone help me how to deal with my problem statement?
df[df['ImportDate'].between(start_date,end_date)], take a look here