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/07/25 23:21:00 UTC

[jira] [Commented] (ARROW-6043) [Python] Array equals returns incorrectly if NaNs are in arrays

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

Wes McKinney commented on ARROW-6043:
-------------------------------------

Somewhat surprised by this. Can you submit a PR?

> [Python] Array equals returns incorrectly if NaNs are in arrays
> ---------------------------------------------------------------
>
>                 Key: ARROW-6043
>                 URL: https://issues.apache.org/jira/browse/ARROW-6043
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Python
>    Affects Versions: 0.14.1
>            Reporter: Keith Kraus
>            Priority: Major
>             Fix For: 1.0.0
>
>
> {code:python}
> import numpy as np
> import pyarrow as pa
> data = [0, 1, np.nan, None, 4]
> arr1 = pa.array(data)
> arr2 = pa.array(data)
> pa.Array.equals(arr1, arr2)
> {code}
> Unsure if this is expected behavior, but in Arrow 0.12.1 this returned `True` as compared to `False` in 0.14.1.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)