pull_requests: 271435658
This data as json
id | node_id | number | state | locked | title | user | body | created_at | updated_at | closed_at | merged_at | merge_commit_sha | assignee | milestone | draft | head | base | author_association | auto_merge | repo | url | merged_by |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
271435658 | MDExOlB1bGxSZXF1ZXN0MjcxNDM1NjU4 | 2904 | closed | 0 | Minor improvement of docstring for Dataset | 691772 | This might help to avoid confusion. data_vars is always a mapping, not a mapping, a variable or a tuple. Passing just a tuple, does not work of course. But for xarray newbies, this might be less obvious and the error message is also not easy to interpret: ``` >>> xr.Dataset(('dim1', np.ones(5))) ... TypeError: unhashable type: 'numpy.ndarray' ``` The correct version of the example above should be: ``` >>> xr.Dataset({'myvar': ('dim1', np.ones(5))}) <xarray.Dataset> Dimensions: (dim1: 5) Dimensions without coordinates: dim1 Data variables: myvar (dim1) float64 1.0 1.0 1.0 1.0 1.0 ``` | 2019-04-17T19:16:50Z | 2019-04-17T20:09:26Z | 2019-04-17T20:08:46Z | 2019-04-17T20:08:45Z | aebe60c8593447c7ef95ca6af6eaef1f7fedc6d5 | 0 | ef93bef5e98fad01373fe7214f5a73a5d580c2ed | 1cd262db77488bc637dfd0c18e2c4ca4fce23c4d | CONTRIBUTOR | 13221727 | https://github.com/pydata/xarray/pull/2904 |
Links from other tables
- 0 rows from pull_requests_id in labels_pull_requests