home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

3 rows where issue = 624378150 and user = 2448579 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

  • dcherian · 3 ✖

issue 1

  • CFTimeIndex calendar in repr · 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
663049967 https://github.com/pydata/xarray/pull/4092#issuecomment-663049967 https://api.github.com/repos/pydata/xarray/issues/4092 MDEyOklzc3VlQ29tbWVudDY2MzA0OTk2Nw== dcherian 2448579 2020-07-23T14:47:19Z 2020-07-23T14:47:19Z MEMBER

Thanks @aaronspring this is a great contribution.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  CFTimeIndex calendar in repr 624378150
637584966 https://github.com/pydata/xarray/pull/4092#issuecomment-637584966 https://api.github.com/repos/pydata/xarray/issues/4092 MDEyOklzc3VlQ29tbWVudDYzNzU4NDk2Ng== dcherian 2448579 2020-06-02T14:37:28Z 2020-06-02T14:37:57Z MEMBER

Ah now I understand your questions. Thanks for clarifying.

My question was whether should replicate the pd.Index.repr or try to import or inherit as much as I can from pandas?

Maybe start by making the smallest possible change to the pandas repr?

EDIT: If we want to build our own repr, there are some helpful functions in core/formatting.py

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  CFTimeIndex calendar in repr 624378150
637234055 https://github.com/pydata/xarray/pull/4092#issuecomment-637234055 https://api.github.com/repos/pydata/xarray/issues/4092 MDEyOklzc3VlQ29tbWVudDYzNzIzNDA1NQ== dcherian 2448579 2020-06-02T02:38:14Z 2020-06-02T02:38:14Z MEMBER

how should I extend the __repr__ coming from pd.Index

if you define a __repr__ method under CFTimeIndex, won't it override pd.Index.__repr__?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  CFTimeIndex calendar in repr 624378150

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