home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

2 rows where issue = 415209776 and user = 1217238 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

  • shoyer · 2 ✖

issue 1

  • formatting of singleton DataArrays · 2 ✖

author_association 1

  • MEMBER 2
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
469325571 https://github.com/pydata/xarray/issues/2791#issuecomment-469325571 https://api.github.com/repos/pydata/xarray/issues/2791 MDEyOklzc3VlQ29tbWVudDQ2OTMyNTU3MQ== shoyer 1217238 2019-03-04T16:48:03Z 2019-03-04T16:48:03Z MEMBER

Here's a related NumPy issue: https://github.com/numpy/numpy/issues/5543

I guess there are two possible behaviors for '{:d}'.format(x) where x is a DataArray object: - coerce scalar arrays to native Python numbers and format it like a float - vectorize format() over each element of the array (the proposal in the linked numpy issue)

These behaviors would definitely conflict for scalar objects -- in the second case, we would still want to include some indication that it's an xarray.DataArray. NumPy doesn't have a conflict because indexing an array results in a NumPy scalars, which prints like Python builtin scalars.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  formatting of singleton DataArrays 415209776
469155529 https://github.com/pydata/xarray/issues/2791#issuecomment-469155529 https://api.github.com/repos/pydata/xarray/issues/2791 MDEyOklzc3VlQ29tbWVudDQ2OTE1NTUyOQ== shoyer 1217238 2019-03-04T08:05:53Z 2019-03-04T08:05:53Z MEMBER

Yes, I think this would be a nice addition. This would entail implementing a __format__ method on xarray.DataArray: https://docs.python.org/3/reference/datamodel.html#object.format

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  formatting of singleton DataArrays 415209776

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