also the following question is quite similiar to this question: Select DataFrame rows between two dates
I wonder how I can select the rows of a dataframe, if my dataframe column is no datetime column. The above solutions always converting the rows to a datetime column, and I don't want to do that for a later process. Right now I have the following dataframe:
columnA
01.10.2018
02.10.2018
.....
and df.dtypes
is object
.
My idea would be to use .loc
:
df.loc[df['columnA'] >= "02.10.2019"]
which could lead to the outcome:
columnA
02.10.2018
Does this work for this object column? Or do I missing something? I really don't want to convert it to a datetime column.