home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 761887054

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/pull/4819#issuecomment-761887054 https://api.github.com/repos/pydata/xarray/issues/4819 761887054 MDEyOklzc3VlQ29tbWVudDc2MTg4NzA1NA== 10194086 2021-01-17T21:56:28Z 2021-01-17T21:56:28Z MEMBER

LGTM!

It would be great to do this for DataArray too — it can be a very simple wrapper of this method.

Just to add on to this - the wrapper can be written as:

```python

class DataArray: ...

def drop_isel(self, indexers=None, **indexers_kwargs):
    """Drop index positions from this dataset.
    ...
    """
    dataset = self._to_temp_dataset()
    dataset = dataset.drop_isel(indexers=indexers, **indexers_kwargs)
    return self._from_temp_dataset(dataset)

...

```

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