home / github / issues

Menu
  • GraphQL API
  • Search all tables

issues: 765639913

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
765639913 MDExOlB1bGxSZXF1ZXN0NTM5MDE3MDE1 4687 keep attrs in xarray.where 14808389 closed 0     16 2020-12-13T20:42:40Z 2022-01-19T20:06:48Z 2022-01-19T19:35:41Z MEMBER   0 pydata/xarray/pulls/4687

Since that question came up at least twice, this allows changing the behavior of where using the keep_attrs option. Dataset.where and DataArray.where always use keep_attrs=True (set in ops.where_method), so we could probably copy that.

Edit: we should also document that only the attributes of cond will be preserved.

  • [x] Closes #4682, closes #4141
  • [x] Tests added
  • [x] Passes isort . && black . && mypy . && flake8
  • [x] User visible changes (including notable bug fixes) are documented in whats-new.rst
{
    "url": "https://api.github.com/repos/pydata/xarray/issues/4687/reactions",
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
    13221727 pull

Links from other tables

  • 1 row from issues_id in issues_labels
  • 16 rows from issue in issue_comments
Powered by Datasette · Queries took 0.668ms · About: xarray-datasette