issues: 1094882077
This data as json
id | node_id | number | title | user | state | locked | assignee | milestone | comments | created_at | updated_at | closed_at | author_association | active_lock_reason | draft | pull_request | body | reactions | performed_via_github_app | state_reason | repo | type |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1094882077 | PR_kwDOAMm_X84wllP5 | 6144 | allow 1 non-null value in interpolate_na with method="nearest" | 3698640 | closed | 0 | 2 | 2022-01-06T01:28:17Z | 2022-01-19T03:33:19Z | 2022-01-18T22:45:39Z | CONTRIBUTOR | 0 | pydata/xarray/pulls/6144 |
@Skealz's great issue (#5994) highlighted that DataArrays with a single non-null value raise an error if In this PR:
* Uses the "fast track" to quickly return any 1-D slices with a single non-null value in addition to the previous all-nan or no-nan fasttrack
* Explicitly check this behavior for all 1-D interpolation methods using parametrized tests
* consolidate other fast-track tests ( For discussion: * This patch may break existing workflows if they rely on the current behavior, which errors for slices with only a single value |
{ "url": "https://api.github.com/repos/pydata/xarray/issues/6144/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
13221727 | pull |