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.
-
[X] I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
>>> dicttyp = pa.dictionary(pa.int8(), pa.string(), ordered=True)
>>> dicttyp.ordered
>>> pd.Series(["foo", "bar", "foo"], dtype=pd.ArrowDtype(dicttyp))
0 foo
1 bar
2 foo
dtype: dictionary<values=string, indices=int8, ordered=0>[pyarrow]
### Issue Description
The pyarrow type above is ordered, but that gets lost when forwarded to pandas
### Expected Behavior
order should be respected
### Installed Versions
main
**Comment From: mroeschke**
Looks to be a pyarrow bug
```python
In [7]: pa.__version__
Out[7]: '15.0.1'
In [8]: dicttyp
Out[8]: DictionaryType(dictionary<values=string, indices=int8, ordered=1>)
In [9]: pa.array(["foo", "bar", "foo"], dicttyp).type
Out[9]: DictionaryType(dictionary<values=string, indices=int8, ordered=0>)
Comment From: WillAyd
Very nice catch. Just opened https://github.com/apache/arrow/issues/41017