home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 524525841

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-524525841 https://api.github.com/repos/pydata/xarray/issues/3240 524525841 MDEyOklzc3VlQ29tbWVudDUyNDUyNTg0MQ== 2818208 2019-08-24T06:39:00Z 2019-08-24T06:39:00Z CONTRIBUTOR

@shoyer, maybe I am missing a nuance in your answer, but I think I already understand this bit about Xarray. My question was why is it is allowed to add a scalar:

```python

arr = xr.DataArray(range(3), dims=['x'], coords={'x': list('abc')}) arr.coords Coordinates: * x (x) <U1 'a' 'b' 'c' arr.coords['y'] = 1 # <----------- Why does this work? arr.coords Coordinates: * x (x) <U1 'a' 'b' 'c' y int64 1 ```

In this case, y are coordinates that do not share an existing dimension.

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