issue_comments: 767565592
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/pull/4818#issuecomment-767565592 | https://api.github.com/repos/pydata/xarray/issues/4818 | 767565592 | MDEyOklzc3VlQ29tbWVudDc2NzU2NTU5Mg== | 10194086 | 2021-01-26T14:10:01Z | 2021-01-26T14:10:01Z | MEMBER | Finally figured it out - I had to use
```python import xarray as xr da = xr.DataArray([1]) ds = xr.Dataset(data_vars={"x": da}) reveal_type(da.weighted(da).mean()) # Revealed type is 'xarray.core.dataarray.DataArray' reveal_type(ds.weighted(da).mean()) # Revealed type is 'xarray.core.dataarray.Dataset' ``` |
{ "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 1, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
787502146 |