Dess
Dess

Reputation: 61

Parsing dates in pandas dates columns

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: enter image description here

When i try to choose a column I got an error. enter image description here

How can i solve this problem?

Upvotes: 0

Views: 76

Answers (1)

Ynjxsjmh
Ynjxsjmh

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

Related Questions