home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 903899345

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/5692#issuecomment-903899345 https://api.github.com/repos/pydata/xarray/issues/5692 903899345 IC_kwDOAMm_X8414GjR 4160723 2021-08-23T15:56:04Z 2021-08-23T15:56:04Z MEMBER

At this point, I'm wondering whether we should depreciate a couple of things now or later:

  • Passing a multi-index directly as a coordinate in Dataset / DataArray constructors

Currently, level coordinates are implicitly created from the multi-index. Suggested behavior: treat the index as an array-like (single coordinate) by default and encourage passing it more explicitly, e.g., something like

python midx = pd.MultiIndex.from_arrays([[...], [...]], names=("foo", "bar")) coords, index = xr.PandasMultiIndex.from_pandas_index(midx, dim=“x”) ds = xr.Dataset(coords=coords, indexes={("foo", "bar"): index})

  • IndexVariable.level_names and IndexVariable.get_level_variable

  • Maybe #5732 too?

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