You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Python] to_pandas drops the time zone of a dictionary-encoded timestamp column #55490
Describe the bug, including details regarding any error messages, version, and platform.
to_pandas() drops the time zone of a dictionary-encoded timestamp column. The column becomes a pandas category whose categories are tz-naive timestamps. Comparing it with a tz-aware timestamp then returns False for every row, with no error:
The categories should keep the time zone, as datetime64[ns, UTC]. encoded > t0 and encoded.dt.tz_convert(...) also raise TypeError, while both work on plain.
Activity