I'm quite new to Python. I have a dataframe with two columns. The second column is from type Series. They all have a suffix I want to delete. I tried to convert it to a string and then maximize the string size. But nothing worked.
I tried: .
df['id'].astype(basestring)
df['id']= df['id'].astype(str)
df['id'] = df['id'].astype("string")
df['id'] = pandas.Series(df['id'], dtype="string")
df['id'] = pandas.Series(df['id'], dtype=pandas.StringDtype)
The column looks like this:
28.04.2019 10:00
29.04.2019 13:00
30.04.2019 14:00
...
I just want the dates and delete the time. Is there any other option I could use to reach my aim?
Thank you in advance!