[ https://issues.apache.org/jira/browse/ARROW-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16385794#comment-16385794 ]
ASF GitHub Bot commented on ARROW-2240: --------------------------------------- xhochy commented on issue #1686: ARROW-2240: [Python] Array initialization with leading numpy nan fails with exception URL: https://github.com/apache/arrow/pull/1686#issuecomment-370346637 Although `np.nan` is actually a float value, it is used at various places to represent null entries in arrays that don't have a nullability mask. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org > [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 > Priority: Minor > Labels: pull-request-available > > > 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)