home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 1324846342

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-1324846342 https://api.github.com/repos/pydata/xarray/issues/7297 1324846342 IC_kwDOAMm_X85O940G 96822049 2022-11-23T10:32:59Z 2022-11-23T10:35:04Z NONE

There's no such thing like a "midx.x" dimension in Xarray.

I'm aware, just using it to communicate thoughts.

Perfectly fine with the solution proposed, as long as it works with unstack()?

I would then expect something like ds_stacked ```

<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

b (midx) int32 10, 20, 30, 40

c (x, midx) int32 16, 26, 37, 47

```

ds_unstacked (not sure if I'm doing the order of values right for b and c, but I hope you get the point) ```

<xarray.Dataset>

Dimensions: (x: 2, y: 2)

Coordinates:

* x (x) int32 1 2

* y (y) int32 3 4

Data variables:

a (x) int32 6 7

b (x, y) int32 10, 20, 30, 40

c (x, y) int32 16, 26, 37, 47

```

{
    "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.651ms · About: xarray-datasette