home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

3 rows where issue = 377947810 and user = 5635139 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

  • max-sixty · 3 ✖

issue 1

  • How do I copy my array forwards in time? · 3 ✖

author_association 1

  • MEMBER 3
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
436422432 https://github.com/pydata/xarray/issues/2547#issuecomment-436422432 https://api.github.com/repos/pydata/xarray/issues/2547 MDEyOklzc3VlQ29tbWVudDQzNjQyMjQzMg== max-sixty 5635139 2018-11-06T21:54:18Z 2018-11-06T21:54:18Z MEMBER

Can you ensure times[0].item() == ds.time[0].item() prior to the reindex? Otherwise the reindex won't find the original index value and will fill with NaNs...

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  How do I copy my array forwards in time? 377947810
436390574 https://github.com/pydata/xarray/issues/2547#issuecomment-436390574 https://api.github.com/repos/pydata/xarray/issues/2547 MDEyOklzc3VlQ29tbWVudDQzNjM5MDU3NA== max-sixty 5635139 2018-11-06T20:06:54Z 2018-11-06T20:06:54Z MEMBER

Your original value needs to be in the time index in order to remain there after the reindex. Currently it looks like a float value:

Coordinates: * time (time) float64 9.505e+17

If you have a repro example (link in issue template) it's easier to offer help on the whole issue

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  How do I copy my array forwards in time? 377947810
436336253 https://github.com/pydata/xarray/issues/2547#issuecomment-436336253 https://api.github.com/repos/pydata/xarray/issues/2547 MDEyOklzc3VlQ29tbWVudDQzNjMzNjI1Mw== max-sixty 5635139 2018-11-06T17:23:28Z 2018-11-06T17:23:28Z MEMBER

IIUC, this is actually much easier - reindex on your enlarged times index, and then use ffill. No need for the for loop etc

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  How do I copy my array forwards in time? 377947810

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