home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 969329589

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/2410#issuecomment-969329589 https://api.github.com/repos/pydata/xarray/issues/2410 969329589 IC_kwDOAMm_X845xsu1 20617032 2021-11-15T21:17:14Z 2021-11-15T21:17:14Z NONE

It appears there is an incorrect statement in the 'indexing' section of the terminology page.

By construction, len(arr.dims) == len(arr.indexes)

But this simple code does not reproduce this result

``` da = xr.DataArray(np.random.randn(2, 3), dims=("x", "y"), coords={"x": [10, 20]})

len(da.dims) == len(da.indexes)

False ```

Because the dimension y does not have any coordinates associated with it. Maybe I am missing something, but it seems a clarification should be added that this is only true for dimensions with coordinates assigned to them.

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