Text repr: remove "Dimensions without coordinates" section#10489
Text repr: remove "Dimensions without coordinates" section#10489benbovy wants to merge 4 commits intopydata:mainfrom
Conversation
|
I was never a big fan of "Dimensions without coordinates"! This message does provide a gentle nudge to annotate coordinates on all dimensions, but I'm not sure that's appropriate or necessary. Xarray would definitely be a bit tidier for non-coordinate users if this section was not shown. Digging back through when we added this, these issues provide the original context: In particular, the complaint was that it could be hard to notice missing coordinates on |
I don't think either, the original (minor) grievance was a long a time ago when coordinates were still added for all dimensions. Now that auxiliary coordinates may also be used in Xarray label-based operations, it is less clear (at least to me) how we can provide a visual indicator in the repr about some lacking coordinate annotation (what is lacking is harder to define, actually).
Hmm wouldn't that give too much importance to the "Coordinates" section whereas "Data" is really the core part of a DataArray? |
The
Dimensions without coordinatessection of the Dataset and DataArray text reprs was useful in the context of dimension coordinates with a default index. Since the index refactor, however, it may be more confusing than useful and even inaccurate in the case of non-dimension coordinate or multi-coordinate indexes.I took the bold step of simply removing that section in this PR. I don't know who is really paying attention to it nowadays, though (there's no equivalent in the html reprs). Alternatively we could keep it and try listing the dimensions more accurately.