issue_comments: 1292089179
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/7214#issuecomment-1292089179 | https://api.github.com/repos/pydata/xarray/issues/7214 | 1292089179 | IC_kwDOAMm_X85NA7db | 4160723 | 2022-10-26T13:54:22Z | 2022-10-26T13:54:22Z | MEMBER | Passing multiple indexes: ```python midx1 = pd.MultiIndex.from_product([["a", "b"], [1, 2]], names=("one", "two")) midx2 = pd.MultiIndex.from_product([["c", "d"], [3, 4]], names=("three", "four")) indexes1 = wrap_pandas_multiindex(midx1, "x") indexes2 = wrap_pandas_multiindex(midx2, "y") indexes = Indexes( indexes=dict(indexes1, indexes2), variables=dict(indexes1.variables, indexes2.variables) ) ds = xr.Dataset(indexes=indexes) <xarray.Dataset>Dimensions: (x: 4, y: 4)Coordinates:* x (x) object MultiIndex* one (x) object 'a' 'a' 'b' 'b'* two (x) int64 1 2 1 2* y (y) object MultiIndex* three (y) object 'c' 'c' 'd' 'd'* four (y) int64 3 4 3 4Data variables:empty``` That's not looking super nice, but probably we can add some convenience function or |
{
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} |
1422543378 |