home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 690815529

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/4417#issuecomment-690815529 https://api.github.com/repos/pydata/xarray/issues/4417 690815529 MDEyOklzc3VlQ29tbWVudDY5MDgxNTUyOQ== 5635139 2020-09-11T01:17:42Z 2020-09-11T01:17:42Z MEMBER

Thanks for the clear example @johnomotani !

IIRC, the second creates an index because ds['x'] = ('x', np.linspace(3,4)) is setting a 1D variable where the name of the variable matches the name of its dimension.

I can see why this is a bit confusing, though it's not an unreasonable default imo. There have been some discussions on this on the issue tracker.

Does ds.set_index(x='b') align the examples? Or do you think there's still some confusion from the API?

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