home / github / issues

Menu
  • GraphQL API
  • Search all tables

issues: 1920167070

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
1920167070 I_kwDOAMm_X85yc2ye 8255 Allow a `lambda` for the `other` param to `where` 5635139 closed 0     1 2023-09-30T08:05:54Z 2023-09-30T19:02:42Z 2023-09-30T19:02:42Z MEMBER      

Is your feature request related to a problem?

Currently we allow:

python da.where(lambda x: x.foo == 5)

...but we don't allow:

python da.where(lambda x: x.foo == 5, lambda x: x - x.shift(1))

...which would be nice

Describe the solution you'd like

No response

Describe alternatives you've considered

I don't think this offers many downsides — it's not like we want to fill the array with a callable object.

Additional context

No response

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/8255/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

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