[ https://issues.apache.org/jira/browse/ARROW-1891?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16281309#comment-16281309 ]
ASF GitHub Bot commented on ARROW-1891: --------------------------------------- wesm opened a new pull request #1399: ARROW-1891: [Python] Always use NumPy NaT sentinels to mark nulls when converting to array URL: https://github.com/apache/arrow/pull/1399 This code path could benefit from some refactoring, but this is enough to get things working properly, and we can refactor later. ---------------------------------------------------------------- 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] NaT date32 values are only converted to nulls if from_pandas is used > ----------------------------------------------------------------------------- > > Key: ARROW-1891 > URL: https://issues.apache.org/jira/browse/ARROW-1891 > Project: Apache Arrow > Issue Type: Bug > Components: Python > Reporter: Uwe L. Korn > Assignee: Wes McKinney > Labels: pull-request-available > Fix For: 0.8.0 > > > {code} > np.array([None, date(2017, 4, 4)], dtype='datetime64[D]') > pa.array(expected, from_pandas=True) -> [null, 2017-4-4] > pa.array(expected, from_pandas=True) -> [1970-1-1, 2017-4-4] > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029)