Skip to content

[Python] Missing MapType to Pandas dtype #26256

@asfimport

Description

@asfimport

The Map type conversion to Pandas done in ARROW-10151 forgot to add dtype mapping for to_pandas_dtype()

 

In [2]: d = pa.map_(pa.int64(), pa.float64())                                                                                In [3]: d.to_pandas_dtype()                                                                                                  
---------------------------------------------------------------------------
NotImplementedError                       Traceback (most recent call last)
<ipython-input-3-08beaa635a3e> in <module>
----> 1 d.to_pandas_dtype()~/miniconda2/envs/pyarrow-test/lib/python3.7/site-packages/pyarrow/types.pxi in pyarrow.lib.DataType.to_pandas_dtype()NotImplementedError: map<int64, double>

Reporter: Bryan Cutler / @BryanCutler
Assignee: Derek Marsh / @dmarsh19

Related issues:

PRs and other links:

Note: This issue was originally created as ARROW-10260. Please see the migration documentation for further details.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions