You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Uwe Korn (Jira)" <ji...@apache.org> on 2020/07/10 18:44:00 UTC

[jira] [Created] (ARROW-9407) [Python] Accept pd.NA as missing value in array constructor

Uwe Korn created ARROW-9407:
-------------------------------

             Summary: [Python] Accept pd.NA as missing value in array constructor
                 Key: ARROW-9407
                 URL: https://issues.apache.org/jira/browse/ARROW-9407
             Project: Apache Arrow
          Issue Type: New Feature
          Components: Python
            Reporter: Uwe Korn
             Fix For: 2.0.0


Currently we don't support using {{pandas.NA}} at all:

{code}
In [1]: import pyarrow as pa

In [2]: import pandas as pd

In [3]: pa.array([pd.NA, "A"])
---------------------------------------------------------------------------
ArrowInvalid                              Traceback (most recent call last)
<ipython-input-3-77e774fa8521> in <module>
----> 1 pa.array([pd.NA, "A"])

~/miniconda3/envs/fletcher/lib/python3.8/site-packages/pyarrow/array.pxi in pyarrow.lib.array()

~/miniconda3/envs/fletcher/lib/python3.8/site-packages/pyarrow/array.pxi in pyarrow.lib._sequence_to_array()

~/miniconda3/envs/fletcher/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status()

ArrowInvalid: Could not convert <NA> with type NAType: did not recognize Python value type when inferring an Arrow data type
{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)