AlenkaF commented on issue #31031:
URL: https://github.com/apache/arrow/issues/31031#issuecomment-4054555862

   This has been fixed in the meantime:
   
   ```python
   In [1]: import pandas as pd
      ...: import pyarrow as pa
      ...: df = pd.DataFrame(index=pd.interval_range(start=0, end=3))
   
   In [2]: df
   Out[2]: 
   Empty DataFrame
   Columns: []
   Index: [(0, 1], (1, 2], (2, 3]]
   
   In [3]: df.index
      ...: 
   Out[3]: IntervalIndex([(0, 1], (1, 2], (2, 3]], dtype='interval[int64, 
right]')
   
   In [4]: table = pa.table(df)
      ...: table.to_pandas().index
   Out[4]: IntervalIndex([(0, 1], (1, 2], (2, 3]], dtype='interval[int64, 
right]')
   
   In [5]: pd.__version__
   Out[5]: '3.0.0'
   
   In [6]: pa.__version__
   Out[6]: '20.0.0.dev1428+ga82edf90c.d20260312'
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to