home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 823673654

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/1887#issuecomment-823673654 https://api.github.com/repos/pydata/xarray/issues/1887 823673654 MDEyOklzc3VlQ29tbWVudDgyMzY3MzY1NA== 1217238 2021-04-20T23:50:34Z 2021-04-20T23:50:34Z MEMBER

It's worth noting that there is at least one other way boolean indexing could work:

  • ds[key] could work like ds.stack({key.name: key.dims}).isel({key.name: np.flatnonzero(key.data)}), except without creating a MultiIndex. Arguably this might be more useful and also more consistent with NumPy itself. It's also more similar to the operation @Hoeze wants in https://github.com/pydata/xarray/issues/5179.

We can't support both with the same syntax, so we have to make a choice here :).

See also the discussion about what drop_duplicates/unique should do over in https://github.com/pydata/xarray/pull/5089.

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