pull_requests: 750079791
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
750079791 | PR_kwDOAMm_X84stU8v | 5839 | closed | 0 | Dataset.__setitem__ raise on being passed a Dataset (for single key) | 35968931 | Inspired by confusion in #5833, this PR slightly clarifies the error thrown when the user attempts to do `ds['var'] = xr.Dataset`. The original error is ``` TypeError: cannot directly convert an xarray.Dataset into a numpy array. Instead, create an xarray.DataArray first, either with indexing on the Dataset or by invoking the `to_array()` method. ``` while the new error is ``` TypeError: Cannot assign a Dataset to a single key - only a DataArray or Variable object can be stored under a single key. ``` - [x] Tests added - [x] Passes `pre-commit run --all-files` - [x] User visible changes (including notable bug fixes) are documented in `whats-new.rst` - ~~New functions/methods are listed in `api.rst`~~ | 2021-10-05T17:18:43Z | 2021-10-23T19:01:24Z | 2021-10-23T19:01:24Z | 2021-10-23T19:01:24Z | 214bbe09fb34496eadb4f266d3bb8c943cdae85d | 0 | 119864dcb82c410343652b6d5df5c41249f15bc0 | 5499949b5937277dcd599a182201d0e2fc5e818e | MEMBER | 13221727 | https://github.com/pydata/xarray/pull/5839 |
Links from other tables
- 0 rows from pull_requests_id in labels_pull_requests