Benoit Bovy

Results 452 comments of Benoit Bovy

The change is because starting from version 2022.6.0, multi-index level coordinates are no longer "virtual" but now correspond to real coordinates. The `.indexes` and `.xindexes` properties are mappings relating coordinates...

Thanks for the issue report @lukasbindreiter, I opened #6987. As a workaround, you could use `Indexes.group_by_index()`, which shouldn't have any hash issue and which might be better fitted for your...

> But finding information about those changes right now was not so easy, is there some resource available where I can read up about the changes to indexes and functions...

> That can probably be closed then, since it was an intentional change. Yes I think we can close it. Thanks for your feedback and for the issue report!

A few thoughts: > how do we format indexes? Do we delegate to their __repr__ or some other method? Like for variable data, Xarray indexes could implement `_repr_inline_` and `__repr__`...

From #6867 (https://github.com/pydata/xarray/issues/6867#issuecomment-1202535745), we might want to update the "Dimensions without coordinates" line too.

Looks good to me @keewis. Thanks for your work on the indexes repr! Yes I think we can skip displaying default indexes for now... The question is which indexes are...

LGTM, thanks @FabianHofmann! Could you update `whats-new.rst` in the docs? I think this bug fix is worth to be mentioned there with your contribution.

> We could raise an error asking the user to switch to swap_dims. Shouldn't we raise a warning instead? There may be relevant use cases like the example above (at...