-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: DatetimeIndex constructed with Timestamps on DST border are converted to the same Timestamp #20854
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
So it appears that this is actually a repr issue, as the resulting DatetimeIndex has the same integer representation as the Timestamps. When constructing the repr here: pandas/pandas/io/formats/format.py Lines 1259 to 1260 in b02c69a
Essentially this happens:
Which is a separate but related bug. |
I think this example stems from the same bug:
|
3 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For Helsinki, DST "falls back" on
2016-10-30
and therefore03:00:00
occurs twice with 2 different UTC offsets (+0300
and+0200
). When constructing theDatetimeIndex
above, the UTC offset of the first argument is incorrectly converted to the offset after the DST transition.Expected:
The text was updated successfully, but these errors were encountered: