[ 
https://issues.apache.org/jira/browse/ARROW-9407?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Wes McKinney resolved ARROW-9407.
---------------------------------
    Fix Version/s:     (was: 2.0.0)
                   1.0.0
       Resolution: Fixed

Issue resolved by pull request 7714
[https://github.com/apache/arrow/pull/7714]

> [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
>            Assignee: Wes McKinney
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.0.0
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> 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)

Reply via email to