8000 NumPy scalars are not collections.Hashable on Python 3 · Issue #5562 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content
NumPy scalars are not collections.Hashable on Python 3 #5562
Closed
@shoyer

Description

@shoyer

xref: pandas-dev/pandas#9276

For example:

In [1]: import numpy as np

In [2]: import collections

In [3]: isinstance(3.14, collections.Hashable)
Out[3]: True

In [4]: isinstance(np.float64(3.14), collections.Hashable)
Out[4]: False

On Python 2.7, the last output here is True (which is the correct value)

Metadata

Metadata

Assignees

No one assigned

    Labels

    00 - Bug57 - Close?Issues which may be closable unless discussion continued

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0