home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 1514437541

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions performed_via_github_app issue
https://github.com/pydata/xarray/issues/7767#issuecomment-1514437541 https://api.github.com/repos/pydata/xarray/issues/7767 1514437541 IC_kwDOAMm_X85aRHul 5821660 2023-04-19T09:42:29Z 2023-04-19T09:42:29Z MEMBER

I think the equivalent incantation would be (note the different order of arguments in xr.where):

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

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  1674532233
Powered by Datasette · Queries took 241.779ms · About: xarray-datasette