Reputation: 61
Good time a day to everyone.
Today i just started to study pandas.
Could you help me with parse dates in DataFrame, when data looks like this:
When i try to choose a column I got an error.
How can i solve this problem?
Upvotes: 0
Views: 76
Reputation: 30070
You can convert your column header type to string with
df.columns = df.columns.astype(str)
Then access one column with
df['2020-02-01 00:00:00']
Upvotes: 1