Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-4269

[Python] AttributeError: module 'pandas.core' has no attribute 'arrays'

    XMLWordPrintableJSON

    Details

      Description

      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'

      ```

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pcmoritz Philipp Moritz
                Reporter:
                pcmoritz Philipp Moritz
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 40m
                  1h 40m