home / github / issues

Menu
  • Search all tables
  • GraphQL API

issues: 1674532233

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
1674532233 I_kwDOAMm_X85jz1WJ 7767 Inconsistency between xr.where() and da.where() 34276374 closed 0     6 2023-04-19T09:30:02Z 2023-09-20T19:25:58Z 2023-09-20T19:25:58Z NONE      

What is your issue?

xr.where() and da.where() behave in seemingly opposite ways.

Example:

python da = xr.DataArray(np.arange(10) print(xr.where(da < 5, 0, da).values) print(da.where(da < 5, 0).values) [0 0 0 0 0 5 6 7 8 9] [0 1 2 3 4 0 0 0 0 0]

It seems like these two methods with the same name should have the same functionality, but they give inverse results.

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/7767/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  completed 13221727 issue

Links from other tables

  • 3 rows from issues_id in issues_labels
  • 5 rows from issue in issue_comments
Powered by Datasette · Queries took 472.561ms · About: xarray-datasette