home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

4 rows where author_association = "MEMBER" and issue = 787692043 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: created_at (date), updated_at (date)

user 3

  • mathause 2
  • max-sixty 1
  • keewis 1

issue 1

  • Add drop_isel · 4 ✖

author_association 1

  • MEMBER · 4 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
762816011 https://github.com/pydata/xarray/pull/4819#issuecomment-762816011 https://api.github.com/repos/pydata/xarray/issues/4819 MDEyOklzc3VlQ29tbWVudDc2MjgxNjAxMQ== keewis 14808389 2021-01-19T12:40:03Z 2021-01-19T12:40:03Z MEMBER

I agree it's important to be consistent with sel. This did come as a surprise to me, though: I assumed that sel would only work in coordinate space, so having it switch to index space when there's no coordinate is somewhat inconsistent with that.

Also, neither drop_sel nor sel explain how they work on dimensions without coordinates in their docstrings. If we decide to keep this I think we should make sure to update the documentation.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add drop_isel 787692043
762714399 https://github.com/pydata/xarray/pull/4819#issuecomment-762714399 https://api.github.com/repos/pydata/xarray/issues/4819 MDEyOklzc3VlQ29tbWVudDc2MjcxNDM5OQ== mathause 10194086 2021-01-19T09:24:14Z 2021-01-19T09:24:14Z MEMBER

I suggested using index = self.get_index(dim) in #4819. Mostly for consistency with sel & because there was no drop_isel. I don't have a strong opinion. I agree it's inconsistent - but it's also convenient and IMHO not surprising.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add drop_isel 787692043
762630904 https://github.com/pydata/xarray/pull/4819#issuecomment-762630904 https://api.github.com/repos/pydata/xarray/issues/4819 MDEyOklzc3VlQ29tbWVudDc2MjYzMDkwNA== max-sixty 5635139 2021-01-19T06:28:36Z 2021-01-19T06:28:36Z MEMBER

Thanks for spotting these @keewis, sorry I missed them.

On the sel fallback to isel, though:

I might be missing something, but I don't think drop_sel should work for dimensions without coordinates: sel as well as drop_sel work on labels, so they need the coordinates

I tend to agree, but .sel does fall back to .isel for dimensions without coordinates, so the now-current code is more consistent. What are your thoughts?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add drop_isel 787692043
761887054 https://github.com/pydata/xarray/pull/4819#issuecomment-761887054 https://api.github.com/repos/pydata/xarray/issues/4819 MDEyOklzc3VlQ29tbWVudDc2MTg4NzA1NA== mathause 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
}
  Add drop_isel 787692043

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

CREATE TABLE [issue_comments] (
   [html_url] TEXT,
   [issue_url] TEXT,
   [id] INTEGER PRIMARY KEY,
   [node_id] TEXT,
   [user] INTEGER REFERENCES [users]([id]),
   [created_at] TEXT,
   [updated_at] TEXT,
   [author_association] TEXT,
   [body] TEXT,
   [reactions] TEXT,
   [performed_via_github_app] TEXT,
   [issue] INTEGER REFERENCES [issues]([id])
);
CREATE INDEX [idx_issue_comments_issue]
    ON [issue_comments] ([issue]);
CREATE INDEX [idx_issue_comments_user]
    ON [issue_comments] ([user]);
Powered by Datasette · Queries took 85.301ms · About: xarray-datasette