You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Jonathan Keane (Jira)" <ji...@apache.org> on 2021/07/16 21:01: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=17382348#comment-17382348 ]
Jonathan Keane commented on ARROW-6043:
---------------------------------------
This has also come up in a slightly different context (comparing {{NaN}}s to non-missing values) and I made ARROW-13364, though depending on how this ticket is resolved they might go together.
> [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
> Assignee: Krisztian Szucs
> Priority: Major
> Labels: pull-request-available
> Fix For: 6.0.0
>
> Time Spent: 1h 10m
> Remaining Estimate: 0h
>
> {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
(v8.3.4#803005)