You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Miki Tebeka (JIRA)" <ji...@apache.org> on 2017/03/16 14:20:42 UTC

[jira] [Created] (ARROW-640) [Python] Arrow types should have a sensible __hash__ and comparison

Miki Tebeka created ARROW-640:
---------------------------------

             Summary: [Python] Arrow types should have a sensible __hash__ and comparison
                 Key: ARROW-640
                 URL: https://issues.apache.org/jira/browse/ARROW-640
             Project: Apache Arrow
          Issue Type: Bug
          Components: Python
            Reporter: Miki Tebeka


{noformat}
In [86]: arr = pa.from_pylist([1, 1, 1, 2])

In [87]: set(arr)
Out[87]: {1, 2, 1, 1}

In [88]: arr[0] == arr[1]
Out[88]: False

In [89]: arr
Out[89]: 
<pyarrow.array.Int64Array object at 0x7f8c8c739e08>
[
  1,
  1,
  1,
  2
]
{noformat}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)