home / github / issues

Menu
  • GraphQL API
  • Search all tables

issues: 196984274

This data as json

id node_id number title user state locked assignee milestone comments created_at updated_at closed_at author_association active_lock_reason draft pull_request body reactions performed_via_github_app state_reason repo type
196984274 MDU6SXNzdWUxOTY5ODQyNzQ= 1177 Inconsistent behaviour for xarray.DataArray.rename 14014177 closed 0     1 2016-12-21T17:05:47Z 2016-12-23T17:26:32Z 2016-12-23T17:26:32Z CONTRIBUTOR      

Hi,

thanks for creating xarray, I like it a lot. However I want to ask, why the behaviour of xarray.DataArray.rename is so incosistent:

python import xarray as xr x = xr.DataArray([1, 2, 3], dims=('a',), coords={'a': [1, 2, 3]}, name='a') x.rename({'a': 'b'})

renames the name of x not the coordinate! Could you explain the behaviour to me? I do not understand it, or consider it as inconsistent.

Thanks, Markus

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/1177/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  completed 13221727 issue

Links from other tables

  • 1 row from issues_id in issues_labels
  • 1 row from issue in issue_comments
Powered by Datasette · Queries took 1.028ms · About: xarray-datasette