This repository was archived by the owner on Oct 29, 2024. It is now read-only.
This repository was archived by the owner on Oct 29, 2024. It is now read-only.
Pandas 0.23.4 TypeError: Already tz-aware #671
Closed
Description
The UTC tz localization raises a TypeError: Already tz-aware, use tz_convert to convert.
with pandas 0.23.4 .
I think this a suitable fix:
if df.index.tzinfo is None:
df.index = df.index.tz_localize('UTC')
Metadata
Metadata
Assignees
Labels
No labels