Skip to content

implement hash for indices #3885

Closed
Closed
@cpcloud

Description

@cpcloud

would be nice as @jreback says to implement this since indices are supposed to be immutable. currently they try to hash the underlying ndarray which of course fails because it is mutable.

succinct reasoning behind why you need immutability for hashables

python docs quote about using ^ (exclusive or) in the implementation

but see this answer for a way to hash numpy arrays.

Metadata

Metadata

Assignees

No one assigned

    Labels

    API DesignEnhancementIdeasLong-Term Enhancement DiscussionsIndexingRelated to indexing on series/frames, not to indexes themselves

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions