[
https://issues.apache.org/jira/browse/ARROW-9407?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated ARROW-9407:
----------------------------------
Labels: pull-request-available (was: )
> [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: 2.0.0
>
> Time Spent: 10m
> 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)