home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

2 rows where issue = 1021396447 and user = 14371165 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

  • Illviljan · 2 ✖

issue 1

  • Display coords' units for slice plots · 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
945070918 https://github.com/pydata/xarray/pull/5847#issuecomment-945070918 https://api.github.com/repos/pydata/xarray/issues/5847 IC_kwDOAMm_X844VKNG Illviljan 14371165 2021-10-17T08:14:35Z 2021-10-17T08:14:35Z MEMBER

I thought a little about the pint issue and for dataarrays you can probably modify the attrs dict around here: https://github.com/pydata/xarray/blob/07de257c5884df49335496ee6347fb633a7c302c/xarray/core/dataarray.py#L133

But I'm not sure it's worth the effort considering the explicit indexes rework is ongoing, #5692, and that should hopefully allow pint quantities on coords.

I'd suggest adding a pint test anyway, but let it xfail for now with a nice explanation. The TODO comment might get lost in the sea of code.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Display coords' units for slice plots 1021396447
945016426 https://github.com/pydata/xarray/pull/5847#issuecomment-945016426 https://api.github.com/repos/pydata/xarray/issues/5847 IC_kwDOAMm_X844U85q Illviljan 14371165 2021-10-16T22:37:44Z 2021-10-16T22:37:44Z MEMBER

That's rather annoying that the pint units are dropped: python arr = xr.DataArray( name="var_a", data=np.array([[1, 2], [3, 4]]), # TODO make coord a Quantity once unit-aware indexes supported coords=dict( a=("a", pint.Quantity(np.array([5, 6]), "s")), b=("b", np.array([7, 8]), {"unit": "s"}), ), dims=("a", "b"), ) C:\Users\J.W\Documents\GitHub\xarray\xarray\core\utils.py:118: UnitStrippedWarning: The unit of the quantity is stripped when downcasting to ndarray. index = pd.Index(np.asarray(array), **kwargs) I think xarray could've at least moved the pint unit string to arr.a.attrs["units"] before downcasting it to ndarrays.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Display coords' units for slice plots 1021396447

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