issue_comments: 1291059643
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-1291059643 | https://api.github.com/repos/pydata/xarray/issues/7214 | 1291059643 | IC_kwDOAMm_X85M9AG7 | 4160723 | 2022-10-25T19:50:57Z | 2022-10-25T19:50:57Z | MEMBER | Hmm I'm wondering what would be best between the options below regarding the types for the
Option 1 is nice for passing multiple indexes, e.g., ```python pd_midx1 = pd.MultiIndex.from_arrays(..., names=("one", "two")) pd_midx2 = pd.MultiIndex.from_arrays(..., , names=("three", "four")) indexes1 = PandasMultiIndex.from_pandas_index(pd_midx1, "x") indexes2 = PandasMultiIndex.from_pandas_index(pd_midx2, "y") ds = xr.Dataset(indexes=[indexes1, indexes2]) ``` With option 1 it feels odd passing an empty list in order to avoid creating default indexes: Option 3 actually works in all cases since I'm leaning towards option 3. For passing multiple indexes at once we could probably expand the What do people think? |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
1422543378 |