home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 1323849354

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/issues/7297#issuecomment-1323849354 https://api.github.com/repos/pydata/xarray/issues/7297 1323849354 IC_kwDOAMm_X85O6FaK 4160723 2022-11-22T15:24:53Z 2022-11-22T15:36:46Z MEMBER

The last example in your comment is probably the most meaningful one:

```

<xarray.Dataset>

Dimensions: (x: 2, midx: 4)

Coordinates:

* midx (midx) object MultiIndex

* x (midx) int32 1 1 2 2

* y (midx) int32 3 4 3 4

Data variables:

a (x) int32 6 7

```

To avoid name conflicts, we could just discard the original dimension coordinates x and y. Like here above, "x" becomes a dimension without coordinate. In that example, when unstacking we would retrieve the "x" dimension coordinate like in the original dataset.

(note: I think it is now possible to have a dimension "x" and a coordinate "x" with different dimensions, but I haven't checked).

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