home / github

Menu
  • GraphQL API
  • Search all tables

issues

Table actions
  • GraphQL API for issues

1 row where comments = 2, repo = 13221727 and user = 8268008 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

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

type 1

  • issue 1

state 1

  • closed 1

repo 1

  • xarray · 1 ✖
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
176406182 MDU6SXNzdWUxNzY0MDYxODI= 1003 Bytes being transformed to a numpy array with dtype=object in coordinates ceridwen 8268008 closed 0     2 2016-09-12T15:28:21Z 2019-02-25T15:28:23Z 2019-02-25T15:28:23Z NONE      

This relates again to this code: https://gist.github.com/ceridwen/21f86231e86b72bf18fcc16fcee01548 .

``` python dataset = transform.read_games(['2016-06.json'])

dataset <xarray.Dataset> Dimensions: (event: 91, faction: 20, game: 2643, round: 7) Coordinates: * round (round) int64 0 1 2 3 4 5 6 * faction (faction) |S14 b'acolytes' b'alchemists' b'auren' ... * event (event) |S26 b'action:ACT1' b'action:ACT2' b'action:ACT3' ... * game (game) object b'005Stedda' b'006St3dda' b'00s10' b'0106' ... Data variables: player5 (game) |S17 b'Stedda' b'Muchacho' b'' b'modong' b'' b'' ... player3 (game) |S19 b'Emoht' b'Xrystofer' b'' b'runrun57' ... date (game) datetime64[ns] 2016-06-07T22:30:47 ... player1 (game) |S22 b'ocollard' b'BillyMirmidon' b'00' b'Animax' ... player2 (game) |S21 b'Mies730' b'Stedda' b'romance90' ... scoring_tiles (game, round) |S6 b'' b'SCORE9' b'SCORE4' b'SCORE2' ... player4 (game) |S20 b'Deryl' b'CarpalTunnel' b'' b'Zak_tak' b'' ... events (game, faction, event, round) float16 nan nan nan nan nan ... players_count (game) int8 5 5 2 5 3 3 4 4 4 4 4 4 5 5 5 5 5 5 5 3 3 4 2 ... ```

Notice that the dtype for the coordinate game is object, even though games is a list of bytes, that is {type(e) for e in names} evaluates to {bytes}.

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/1003/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  completed xarray 13221727 issue

Advanced export

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

CSV options:

CREATE TABLE [issues] (
   [id] INTEGER PRIMARY KEY,
   [node_id] TEXT,
   [number] INTEGER,
   [title] TEXT,
   [user] INTEGER REFERENCES [users]([id]),
   [state] TEXT,
   [locked] INTEGER,
   [assignee] INTEGER REFERENCES [users]([id]),
   [milestone] INTEGER REFERENCES [milestones]([id]),
   [comments] INTEGER,
   [created_at] TEXT,
   [updated_at] TEXT,
   [closed_at] TEXT,
   [author_association] TEXT,
   [active_lock_reason] TEXT,
   [draft] INTEGER,
   [pull_request] TEXT,
   [body] TEXT,
   [reactions] TEXT,
   [performed_via_github_app] TEXT,
   [state_reason] TEXT,
   [repo] INTEGER REFERENCES [repos]([id]),
   [type] TEXT
);
CREATE INDEX [idx_issues_repo]
    ON [issues] ([repo]);
CREATE INDEX [idx_issues_milestone]
    ON [issues] ([milestone]);
CREATE INDEX [idx_issues_assignee]
    ON [issues] ([assignee]);
CREATE INDEX [idx_issues_user]
    ON [issues] ([user]);
Powered by Datasette · Queries took 295.673ms · About: xarray-datasette