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][Interchange] from_dataframe drops the categorical ordered flag #51046
Describe the bug, including details regarding any error messages, version, and platform.
pyarrow.interchange.from_dataframe builds the dictionary array without the is_ordered flag the producer reports, so an ordered categorical column comes back unordered. A pyarrow table whose column is dictionary(int32, string, ordered=True) does not survive its own round trip, and an ordered pandas Categorical loses its ordering on the way in.
The interchange protocol exposes the flag: a categorical column's describe_categorical returns is_ordered, and the pandas consumer passes it through. The pyarrow consumer reads the mapping but drops is_ordered.
Activity
AlenkaF commentedon Nov 18, 2026
Just a note that the interchange protocol will be deprecated, see: