Skip to content

avoid casting custom indexes in Dataset.drop_attrs#10961

Merged
keewis merged 4 commits intopydata:mainfrom
keewis:drop_attrs-xindexes
Dec 1, 2025
Merged

avoid casting custom indexes in Dataset.drop_attrs#10961
keewis merged 4 commits intopydata:mainfrom
keewis:drop_attrs-xindexes

Conversation

@keewis
Copy link
Collaborator

@keewis keewis commented Dec 1, 2025

  • Tests added
  • User visible changes (including notable bug fixes) are documented in whats-new.rst

Looks like we used ds.indexes in drop_attrs to find IndexVariable instances, which for custom indexes that don't support casting raises.

@keewis
Copy link
Collaborator Author

keewis commented Dec 1, 2025

Thanks for the review, @dcherian

Looks like there's something wrong with rattler / the min-deps CI. Since I didn't change min versions, this should be unrelated either way.

@keewis keewis merged commit 4321ce0 into pydata:main Dec 1, 2025
36 of 37 checks passed
@keewis keewis deleted the drop_attrs-xindexes branch December 1, 2025 14:54
jsignell pushed a commit to jsignell/xarray that referenced this pull request Dec 2, 2025
* use `xindexes` when checking for indexes

* check that the fix works

* whats-new
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants