You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Wes McKinney (JIRA)" <ji...@apache.org> on 2019/06/12 19:53:00 UTC

[jira] [Commented] (ARROW-2240) [Python] Array initialization with leading numpy nan fails with exception

    [ https://issues.apache.org/jira/browse/ARROW-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16862412#comment-16862412 ] 

Wes McKinney commented on ARROW-2240:
-------------------------------------

Heads up: in https://github.com/apache/arrow/pull/4527 I am reverting this behavior unless you explicitly pass {{from_pandas=True}}

> [Python] Array initialization with leading numpy nan fails with exception
> -------------------------------------------------------------------------
>
>                 Key: ARROW-2240
>                 URL: https://issues.apache.org/jira/browse/ARROW-2240
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Python
>    Affects Versions: 0.8.0
>            Reporter: Florian Jetter
>            Assignee: Phillip Cloud
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 0.9.0
>
>
>  
> Arrow initialization fails for string arrays with leading numpy NAN
> {code:java}
> import pyarrow as pa
> import numpy as np
> pa.array([np.nan, 'str'])
> # Py3: ArrowException: Unknown error: must be real number, not str
> # Py2: ArrowException: Unknown error: a float is required{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)