home / github / issues

Menu
  • GraphQL API
  • Search all tables

issues: 596151195

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
596151195 MDU6SXNzdWU1OTYxNTExOTU= 3952 Doc improvement for DataArray.assign_coords 15892073 closed 0     2 2020-04-07T21:04:29Z 2020-04-10T13:17:13Z 2020-04-10T13:17:13Z CONTRIBUTOR      

Hi, first I wanted to say that xarray is a really fantastic library, it saves so many manipulations in my work.

I was looking for a way to add a coordinate to a DataArray and attribute it to a specific dimension. I found that the following syntax was exactly what I was looking for :

python da.assign_coords(new_coordinate=('dim_to_use', values))

However, the documentation of the method was not referencing this syntax. What do you think?

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/3952/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
  • 2 rows from issue in issue_comments
Powered by Datasette · Queries took 0.8ms · About: xarray-datasette