home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

3 rows where issue = 1659078413 and user = 2448579 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

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

user 1

  • dcherian · 3 ✖

issue 1

  • `ds.to_dict` with data as arrays, not lists · 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
1527648649 https://github.com/pydata/xarray/pull/7739#issuecomment-1527648649 https://api.github.com/repos/pydata/xarray/issues/7739 IC_kwDOAMm_X85bDhGJ dcherian 2448579 2023-04-28T14:22:58Z 2023-04-28T14:22:58Z MEMBER

Thanks @jmccreight great work!

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  `ds.to_dict` with data as arrays, not lists 1659078413
1514762927 https://github.com/pydata/xarray/pull/7739#issuecomment-1514762927 https://api.github.com/repos/pydata/xarray/issues/7739 IC_kwDOAMm_X85aSXKv dcherian 2448579 2023-04-19T13:44:10Z 2023-04-19T13:44:10Z MEMBER

what about instead of adding another kwarg, you could use data = True / False / "numpy"?

Oh yeah, I like this. Only suggestion is data = True / False / "array" / "list" where True and "list" are synonymous.

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  `ds.to_dict` with data as arrays, not lists 1659078413
1513865565 https://github.com/pydata/xarray/pull/7739#issuecomment-1513865565 https://api.github.com/repos/pydata/xarray/issues/7739 IC_kwDOAMm_X85aO8Fd dcherian 2448579 2023-04-18T22:28:07Z 2023-04-18T22:28:07Z MEMBER

Copying my comment from https://github.com/pydata/xarray/issues/1599#issuecomment-1504276696

Perhaps we should have array_to_list: bool instead. If False, we just preserve the underlying array type. Then the user could do ds.as_numpy().to_dict(array_to_list=False) to always get numpy arrays as #7739

array_data or data_as_array could be other options

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  `ds.to_dict` with data as arrays, not lists 1659078413

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