[ https://issues.apache.org/jira/browse/ARROW-16645?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17542247#comment-17542247 ]
Matthew Roeschke commented on ARROW-16645: ------------------------------------------ Ah thanks, I didn't see ARROW-5295 Since this issue is just a subset of that larger issue. I'll close this one > [Python] Allow pa.array/pa.chunked_array to infer pa.NA when in a non pyarrow > container > --------------------------------------------------------------------------------------- > > Key: ARROW-16645 > URL: https://issues.apache.org/jira/browse/ARROW-16645 > Project: Apache Arrow > Issue Type: Improvement > Components: Python > Affects Versions: 7.0.0 > Reporter: Matthew Roeschke > Priority: Major > > Example: > > > {code:java} > In [15]: import pyarrow as pa > In [16]: pa.array([1, pa.NA]) > ArrowInvalid: Could not convert <pyarrow.NullScalar: None> with type > pyarrow.lib.NullScalar: did not recognize Python value type when inferring an > Arrow data type{code} > > I would be great if this could be equivalent to > {code:java} > In [17]: pa.array([1, pa.NA], mask=[False, True]) > Out[17]: > <pyarrow.lib.Int64Array object at 0x7fe49c172b80> > [ > 1, > null > ] > In [18]: pa.__version__ > Out[18]: '7.0.0'{code} > > > -- This message was sent by Atlassian Jira (v8.20.7#820007)