home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 1323478134

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-1323478134 https://api.github.com/repos/pydata/xarray/issues/7297 1323478134 IC_kwDOAMm_X85O4qx2 4160723 2022-11-22T10:50:01Z 2022-11-22T10:50:01Z MEMBER

Interesting! I don't think that when adding stack / unstack we were thinking that variables with only a subset of the stacked dimensions would be a common use case.

I guess it would be possible to add some option to stack only the variables that have all the dimensions to be stacked, and leave the other variables unchanged? However, one problem with keeping the original dimension coordinates is that we would have name conflicts between the single index coordinates and the multi-index coordinates.

In your expected example, the "x" coordinate is part of the multi-index but it doesn't have the same dimension "midx"? I find it rather confusing.

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