home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

1 row where issue = 730569820 and user = 10194086 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

  • mathause · 1 ✖

issue 1

  • Coordinate dtype changing to object after xr.concat · 1 ✖

author_association 1

  • MEMBER 1
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
717436557 https://github.com/pydata/xarray/issues/4543#issuecomment-717436557 https://api.github.com/repos/pydata/xarray/issues/4543 MDEyOklzc3VlQ29tbWVudDcxNzQzNjU1Nw== mathause 10194086 2020-10-27T18:22:50Z 2020-10-27T18:22:50Z MEMBER

I think the problem is in align and that pd.Index(["a"]) has dtype=object:

python import pandas as pd pd.Index(["a", "b"])

concat calls align here

https://github.com/pydata/xarray/blob/adc55ac4d2883e0c6647f3983c3322ca2c690514/xarray/core/concat.py#L383

and align basically does the following:

python index = da1.indexes["x2"] | da2.indexes["x2"] da1.reindex({"x2": index})

Thus we replace the coords with an index.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Coordinate dtype changing to object after xr.concat 730569820

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