home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

6 rows where issue = 935531700 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

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

user 2

  • dcherian 4
  • keewis 2

issue 1

  • hooks to "prepare" xarray objects for plotting · 6 ✖

author_association 1

  • MEMBER 6
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
873548277 https://github.com/pydata/xarray/issues/5562#issuecomment-873548277 https://api.github.com/repos/pydata/xarray/issues/5562 MDEyOklzc3VlQ29tbWVudDg3MzU0ODI3Nw== keewis 14808389 2021-07-04T08:46:34Z 2021-07-04T08:46:34Z MEMBER

that makes sense, but I think long term it might be better to find a way to delegate this to duck array extension libraries (it really should call .pint.dequantify()).

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  hooks to "prepare" xarray objects for plotting 935531700
873490045 https://github.com/pydata/xarray/issues/5562#issuecomment-873490045 https://api.github.com/repos/pydata/xarray/issues/5562 MDEyOklzc3VlQ29tbWVudDg3MzQ5MDA0NQ== dcherian 2448579 2021-07-04T00:23:46Z 2021-07-04T00:23:46Z MEMBER

I think we should special-case pint and add the units attribute on the DataArray like .pint.dequantify

We would also want this to write pint-backed xarray datasets to netCDF.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  hooks to "prepare" xarray objects for plotting 935531700
873486576 https://github.com/pydata/xarray/issues/5562#issuecomment-873486576 https://api.github.com/repos/pydata/xarray/issues/5562 MDEyOklzc3VlQ29tbWVudDg3MzQ4NjU3Ng== dcherian 2448579 2021-07-03T23:56:54Z 2021-07-03T23:56:54Z MEMBER

Oh I see. as_numpy is using data.magnitude and dropping the units. I think we should special-case pint and add the units attribute on the DataArray like .pint.dequantify

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  hooks to "prepare" xarray objects for plotting 935531700
873482727 https://github.com/pydata/xarray/issues/5562#issuecomment-873482727 https://api.github.com/repos/pydata/xarray/issues/5562 MDEyOklzc3VlQ29tbWVudDg3MzQ4MjcyNw== dcherian 2448579 2021-07-03T23:12:31Z 2021-07-03T23:12:31Z MEMBER

wouldn't as_numpy on a pint-backed DataArray return a DataArray with numpy data and units in the attribute?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  hooks to "prepare" xarray objects for plotting 935531700
873478528 https://github.com/pydata/xarray/issues/5562#issuecomment-873478528 https://api.github.com/repos/pydata/xarray/issues/5562 MDEyOklzc3VlQ29tbWVudDg3MzQ3ODUyOA== keewis 14808389 2021-07-03T22:23:50Z 2021-07-03T22:23:50Z MEMBER

that will work if we want to remove the units, but .pint.dequantify() also adds the units as string-valued attributes. In other words, I'd like the new hook to work on xarray objects instead of the wrapped duck array.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  hooks to "prepare" xarray objects for plotting 935531700
872966327 https://github.com/pydata/xarray/issues/5562#issuecomment-872966327 https://api.github.com/repos/pydata/xarray/issues/5562 MDEyOklzc3VlQ29tbWVudDg3Mjk2NjMyNw== dcherian 2448579 2021-07-02T12:38:09Z 2021-07-02T12:38:09Z MEMBER

For example for pint the hook would return the result of .pint.dequantify() but it could also be used to explicitly call .get on cupy arrays or .todense on sparse arrays.

We discussed as_numpy or to_numpy_data here: https://github.com/pydata/xarray/issues/3245

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  hooks to "prepare" xarray objects for plotting 935531700

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