Question Details

No question body available.

Tags

python pandas python-datetime timezone-offset

Answers (1)

June 25, 2026 Score: 3 Rep: 51 Quality: Low Completeness: 40%

When changing the timezone to "Europe/Berlin" via

df.timestamp.dt.tz_convert("Europe/Berlin")

the time shift is done automatically. It is recognized as one timezone, and thus pandas does not default back to object so the '.dt' functionality remains.