Skip to content

Indexes.get_unique() TypeError with pandas indexes #6987

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
benbovy opened this issue Sep 5, 2022 · 0 comments · Fixed by #7003
Closed

Indexes.get_unique() TypeError with pandas indexes #6987

benbovy opened this issue Sep 5, 2022 · 0 comments · Fixed by #7003
Assignees

Comments

@benbovy
Copy link
Member

benbovy commented Sep 5, 2022

@benbovy I also just tested the get_unique() method that you mentioned and maybe noticed a related issue here, which I'm not sure is wanted / expected.

Taking the above dataset ds, accessing this function results in an error:

> ds.indexes.get_unique()

TypeError: unhashable type: 'MultiIndex'

However, for xindexes it works:

> ds.xindexes.get_unique()

[<xarray.core.indexes.PandasMultiIndex at 0x7f105bf1df20>]

Originally posted by @lukasbindreiter in #6752 (comment)

@github-actions github-actions bot added the needs triage Issue that has not been reviewed by xarray team member label Sep 5, 2022
@benbovy benbovy added bug topic-indexing and removed needs triage Issue that has not been reviewed by xarray team member labels Sep 5, 2022
@benbovy benbovy self-assigned this Sep 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant