Open boschmic opened 3 days ago
Thanks for reporting this.
I think we spotted this in our CI for pandas 2.2.x as well.
@mroeschke Sorry to ping but do you know what's going wrong? Looking at pytz's release it looks like all they did was update their tzdata to IANA 2024b. Maybe we have a conflict between pytz and zoneinfo/tzdata?
Given the documentation in https://pandas.pydata.org/docs/user_guide/timeseries.html#working-with-time-zones (in the Note
below), it seems that the ==2024.2
pytz behavior is more correct then the prior.
I don't exactly recall seeing this in the 2.2.x branch.
Additionally, the pandas main branch already removed support for interpreting CET
as a pytz timezone and now will infer this as a zoneinfo timezone, so I'm not sure this is likely to be fixed
Pandas version checks
[X] I have checked that this issue has not already been reported.
[X] I have confirmed this bug exists on the latest version of pandas.
[ ] I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
Issue Description
If
pytz = "==2024.2"
is installed the example printsDowngrading
pytz
to2024.1
resolves this issue.Expected Behavior
The
.tz
property should produce the same result regardless if the object is aTimestamp
orDatetimeIndex
. Hence, I expect this example to printInstalled Versions