I have a calendar data in the following format:
df = pd.read_csv('2021.txt', sep=" ")
df.head()
I'd like to have it as:
Date y
2021-01-01 17:26
2021-01-02 17:27
2021-01-03 17:28
2021-01-04 17:28
...
2021-12-31 17:25
I've searched and found no similar questions. I'm trying to provide a minimal example but don't know where to start. I know I have to use pandas.to_datetime function but I don't even know how to apply it in this case because everything is separated.
