home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

2 rows where author_association = "MEMBER" and issue = 241389297 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

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

user 1

  • shoyer 2

issue 1

  • .sel(drop=True) fails to drop coordinate · 2 ✖

author_association 1

  • MEMBER · 2 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
314149877 https://github.com/pydata/xarray/issues/1472#issuecomment-314149877 https://api.github.com/repos/pydata/xarray/issues/1472 MDEyOklzc3VlQ29tbWVudDMxNDE0OTg3Nw== shoyer 1217238 2017-07-10T15:54:22Z 2017-07-10T15:54:22Z MEMBER

If you can point to a place in docs where you were mislead, suggestions for clarification would be very welcome.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  .sel(drop=True) fails to drop coordinate 241389297
314007170 https://github.com/pydata/xarray/issues/1472#issuecomment-314007170 https://api.github.com/repos/pydata/xarray/issues/1472 MDEyOklzc3VlQ29tbWVudDMxNDAwNzE3MA== shoyer 1217238 2017-07-10T05:09:05Z 2017-07-10T05:09:05Z MEMBER

drop=True is actually intended to control dropping scalar coordinates, but the result of indexing with '2012' isn't producing a scalar. In this case, what you need is to squeeze out the length one dimension, with .squeeze().

The counter intuitive behavior you are seeing for indexing with a string for a year like arr.sel(time='2012') is something we inherit upstream from pandas: http://pandas.pydata.org/pandas-docs/stable/timeseries.html#slice-vs-exact-match

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  .sel(drop=True) fails to drop coordinate 241389297

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 11.888ms · About: xarray-datasette