home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

4 rows where issue = 241714748 and user = 10050469 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

  • fmaussion · 4 ✖

issue 1

  • Selecting time with different variable and dimensions names · 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
314162435 https://github.com/pydata/xarray/issues/1474#issuecomment-314162435 https://api.github.com/repos/pydata/xarray/issues/1474 MDEyOklzc3VlQ29tbWVudDMxNDE2MjQzNQ== fmaussion 10050469 2017-07-10T16:37:45Z 2017-07-10T16:37:45Z MEMBER

In this case, I don't know the name if the dimension beforehand

Yes, in this case definitely a good use case for a dict and .loc

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Selecting time with different variable and dimensions names 241714748
314161175 https://github.com/pydata/xarray/issues/1474#issuecomment-314161175 https://api.github.com/repos/pydata/xarray/issues/1474 MDEyOklzc3VlQ29tbWVudDMxNDE2MTE3NQ== fmaussion 10050469 2017-07-10T16:33:05Z 2017-07-10T16:33:05Z MEMBER

I personally very much prefer the readability of .sel and .isel, which is what I teach to my students.

I don't know however what's most used amongst other xarray users

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Selecting time with different variable and dimensions names 241714748
314152374 https://github.com/pydata/xarray/issues/1474#issuecomment-314152374 https://api.github.com/repos/pydata/xarray/issues/1474 MDEyOklzc3VlQ29tbWVudDMxNDE1MjM3NA== fmaussion 10050469 2017-07-10T16:02:48Z 2017-07-10T16:02:48Z MEMBER

have you tried the way it is done in the docs?

http://xarray.pydata.org/en/latest/indexing.html#indexing-with-labeled-dimensions

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Selecting time with different variable and dimensions names 241714748
314112894 https://github.com/pydata/xarray/issues/1474#issuecomment-314112894 https://api.github.com/repos/pydata/xarray/issues/1474 MDEyOklzc3VlQ29tbWVudDMxNDExMjg5NA== fmaussion 10050469 2017-07-10T13:55:41Z 2017-07-10T13:55:41Z MEMBER

Somewhat not a direct answer to your question, but I see you are reading in WRF files. Have you considered using Salem's open_wrf_dataset on your files? It will solve some time related issues that these files have

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Selecting time with different variable and dimensions names 241714748

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