home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 1186349429

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions performed_via_github_app issue
https://github.com/pydata/xarray/pull/6795#issuecomment-1186349429 https://api.github.com/repos/pydata/xarray/issues/6795 1186349429 IC_kwDOAMm_X85GtkF1 4160723 2022-07-17T00:22:21Z 2022-07-17T00:24:01Z MEMBER

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__ to have both a summarized and detailed representation. They could also have a _repr_html_ (for fancy representation of complex indexes).

should we skip PandasIndex and PandasMultiIndex?

I'd skip it for the plain text DataArray / Dataset reprs (not a good information / verbosity ratio), but I'd keep it for the html repr (the index section could be collapsed by default) as well as for the Indexes repr. We could also provide a display option for more control on this (e.g., a display_default_indexes option set to False by default).

how do we present indexes that wrap multiple columns? At the moment, they are duplicated

Assuming that all coordinates related to a given index are shown next to each other, we could render the inline repr for the 1st coordinate and then use a short symbol (e.g., --, or a unicode symbol?) below that means "it's the same index".

what do we do with the index marker in the coords repr?

I think we can keep it as-is. It helps to identify at a glance which coordinates are indexed and which aren't. And it's still relevant if we skip PandasIndex and PandasMultiIndex in the plain text DataArray / Dataset reprs.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  1306887842
Powered by Datasette · Queries took 81.21ms · About: xarray-datasette