home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 1166980787

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/6704#issuecomment-1166980787 https://api.github.com/repos/pydata/xarray/issues/6704 1166980787 IC_kwDOAMm_X85Fjraz 4160723 2022-06-27T07:23:24Z 2022-06-27T07:25:13Z MEMBER

Should rename_dims also rename indexes (dimension coordinates)?

Yes, renaming dimensions and/or coordinates should be properly handled by indexes. Xarray's Index abstract class provides a rename method that may (should) be implemented in subclasses.

For example, PandasIndex and PandasMultiIndex both have a dim attribute that must match the dimension name (this attribute is required as in a near future it will be possible to set indexes for non-dimension coordinates).

PandasIndex.rename (PandasMultiIndex.rename) also renames the underlying pandas index (levels) according to the new coordinate name(s).

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