[ https://issues.apache.org/jira/browse/ARROW-4269?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17661293#comment-17661293 ]
Rok Mihevc commented on ARROW-4269: ----------------------------------- This issue has been migrated to [issue #20845|https://github.com/apache/arrow/issues/20845] on GitHub. Please see the [migration documentation|https://github.com/apache/arrow/issues/14542] for further details. > [Python] AttributeError: module 'pandas.core' has no attribute 'arrays' > ----------------------------------------------------------------------- > > Key: ARROW-4269 > URL: https://issues.apache.org/jira/browse/ARROW-4269 > Project: Apache Arrow > Issue Type: Improvement > Components: Python > Reporter: Philipp Moritz > Assignee: Philipp Moritz > Priority: Major > Labels: pull-request-available > Fix For: 0.12.0 > > Time Spent: 1h 40m > Remaining Estimate: 0h > > This happens with pandas 0.22: > ``` > In [1]: import pyarrow > --------------------------------------------------------------------------- > AttributeError Traceback (most recent call last) > <ipython-input-1-57968f417579> in <module>() > ----> 1 import pyarrow > ~/arrow/python/pyarrow/__init__.py in <module>() > 174 localfs = LocalFileSystem.get_instance() > 175 > --> 176 from pyarrow.serialization import (default_serialization_context, > 177 register_default_serialization_handlers, > 178 register_torch_serialization_handlers) > ~/arrow/python/pyarrow/serialization.py in <module>() > 303 > 304 > --> 305 > register_default_serialization_handlers(_default_serialization_context) > ~/arrow/python/pyarrow/serialization.py in > register_default_serialization_handlers(serialization_context) > 294 custom_deserializer=_deserialize_pyarrow_table) > 295 > --> 296 _register_custom_pandas_handlers(serialization_context) > 297 > 298 > ~/arrow/python/pyarrow/serialization.py in > _register_custom_pandas_handlers(context) > 175 custom_deserializer=_load_pickle_from_buffer) > 176 > --> 177 if hasattr(pd.core.arrays, 'interval'): > 178 context.register_type( > 179 pd.core.arrays.interval.IntervalArray, > AttributeError: module 'pandas.core' has no attribute 'arrays' > ``` -- This message was sent by Atlassian Jira (v8.20.10#820010)