home / github / issues

Menu
  • GraphQL API
  • Search all tables

issues: 60774061

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
60774061 MDU6SXNzdWU2MDc3NDA2MQ== 370 Make .drop and .idrop mirror .sel and .isel? 1217238 closed 0     1 2015-03-12T05:36:44Z 2015-09-02T17:37:18Z 2015-09-02T17:37:18Z MEMBER      

Currently, to remove the label 'foo' from dimension x, you write: ds.drop('foo', dim='x').

What if, instead, you could write ds.drop(x='foo'), or to drop the label at integer position 0, ds.idrop(x=0)?

There is a nice potential symmetry here: we could make drop and idrop exactly mirror sel and isel, except that all the selected elements are removed instead. This could include single elements, arrays, boolean arrays and even slice objects.

Thoughts?

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

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