pull_requests: 451103999
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
451103999 | MDExOlB1bGxSZXF1ZXN0NDUxMTAzOTk5 | 4237 | closed | 0 | per-variable fill values | 14808389 | This allows specifying different fill values per variable, defaulting to `dtypes.NA`. There's no documentation updates, yet: I'll work on that once I'm sure I found every function for which this change makes sense. <details><summary>Here's a demo on how this works:</summary> ```python In [3]: ds = xr.Dataset( ...: {"a": ("x", [2, 3]), "b": ("x", [-9, 4])}, ...: coords={"x": [0, 1], "u": ("x", ["a", "b"])}, ...: ) ...: ds Out[3]: <xarray.Dataset> Dimensions: (x: 2) Coordinates: * x (x) int64 0 1 u (x) <U1 'a' 'b' Data variables: a (x) int64 2 3 b (x) int64 -9 4 In [4]: ds.reindex(x=[-1, 0]) Out[4]: <xarray.Dataset> Dimensions: (x: 2) Coordinates: * x (x) int64 -1 0 u (x) object nan 'a' Data variables: a (x) float64 nan 2.0 b (x) float64 nan -9.0 In [5]: ds.reindex(x=[-1, 0], fill_value={"u": "z", "a": 10}) Out[5]: <xarray.Dataset> Dimensions: (x: 2) Coordinates: * x (x) int64 -1 0 u (x) <U1 'z' 'a' Data variables: a (x) int64 10 2 b (x) float64 nan -9.0 ``` </details> - [x] Closes #4165 - [x] Tests added - [x] Passes `isort . && black . && mypy . && flake8` - [ ] User visible changes (including notable bug fixes) are documented in `whats-new.rst` - [ ] New functions/methods are listed in `api.rst` | 2020-07-17T12:52:17Z | 2020-08-24T22:14:27Z | 2020-08-24T22:03:15Z | 2020-08-24T22:03:15Z | a36d0a1d4657c848dcdd76d0ecb9c783ad464057 | 0 | bcaf16e336f72f1141e7434d0234e19eeeb2b128 | d9ebcafaddf0bb80052d30f43ca5ea18a5c7229f | MEMBER | 13221727 | https://github.com/pydata/xarray/pull/4237 |
Links from other tables
- 0 rows from pull_requests_id in labels_pull_requests