You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "westonpace (via GitHub)" <gi...@apache.org> on 2023/06/09 13:02:47 UTC

[GitHub] [arrow] westonpace commented on issue #35855: `pyarrow.Table.to_pandas` creates Index instead of PeriodIndex

westonpace commented on issue #35855:
URL: https://github.com/apache/arrow/issues/35855#issuecomment-1584542880

   I think this is expected behavior from pyarrow's perspective.  The extension type is registered here: https://github.com/pandas-dev/pandas/blob/1a254df2e7e5a100cad1af4a97eded5177ae7d3e/pandas/core/arrays/arrow/extension_types.py#LL57C33-L57C45
   
   So until that file is imported, Arrow doesn't recognize the extension type.  In other words, everything works if you change the start of the file:
   
   ```
   import pandas
   import pandas.core.arrays.arrow.extension_types
   import pyarrow.parquet
   ```


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org