home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 524399716

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/3240#issuecomment-524399716 https://api.github.com/repos/pydata/xarray/issues/3240 524399716 MDEyOklzc3VlQ29tbWVudDUyNDM5OTcxNg== 1217238 2019-08-23T17:34:44Z 2019-08-23T17:34:44Z MEMBER

This was intentional. array.assign_coords(name=value) should be equivalent to array = array.copy(deep=False); array.coords[name] = value.

You are allowed to add new coordinates to a DataArray if they share existing dimensions. You are not allowed to add coordinates with new dimensions, because it is enforced as an invariant of the DataArray data model that all coordinate dimensions are found on the DataArray variable as well.

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