home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

4 rows where issue = 1376479521 and user = 43316012 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

  • headtr1ck · 4 ✖

issue 1

  • Add Ellipsis typehint to reductions · 4 ✖

author_association 1

  • COLLABORATOR 4
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
1257220735 https://github.com/pydata/xarray/pull/7048#issuecomment-1257220735 https://api.github.com/repos/pydata/xarray/issues/7048 IC_kwDOAMm_X85K76p_ headtr1ck 43316012 2022-09-25T15:42:49Z 2022-09-25T15:42:49Z COLLABORATOR

```python import numpy as np import pandas as pd import xarray as xr

da = xr.DataArray( np.array([1, 2, 3, 1, 2, np.nan]), dims="time", coords=dict( time=("time", pd.date_range("01-01-2001", freq="M", periods=6)), labels=("time", np.array(["a", "b", "c", "c", "b", "a"])), ), ) da.groupby("labels").count()

da = xr.DataArray( np.array([1, 2, 3, 1, 2, np.nan]), dims="time", coords=dict( time=("time", pd.date_range("01-01-2001", freq="M", periods=6)), labels=("time", np.array(["a", "b", "c", "c", "b", "a"])), ), ) da.groupby("labels").count() ```

For me this works in a python terminal, python script and jupyter notebook (I don't use spyder but vscode).

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add Ellipsis typehint to reductions 1376479521
1250258063 https://github.com/pydata/xarray/pull/7048#issuecomment-1250258063 https://api.github.com/repos/pydata/xarray/issues/7048 IC_kwDOAMm_X85KhWyP headtr1ck 43316012 2022-09-18T12:17:32Z 2022-09-18T12:17:32Z COLLABORATOR

Is it just me that this example crashes the second time I run it?

Could you specify what you mean by "second time I run it"? Executing the groupby twice?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add Ellipsis typehint to reductions 1376479521
1250080138 https://github.com/pydata/xarray/pull/7048#issuecomment-1250080138 https://api.github.com/repos/pydata/xarray/issues/7048 IC_kwDOAMm_X85KgrWK headtr1ck 43316012 2022-09-17T14:20:16Z 2022-09-17T14:20:16Z COLLABORATOR

Turns out that the buildin ellipsis works now with mypy. Did not test it for older python versions, may require some special casing (Lets see if the tests pass)?

{
    "total_count": 1,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 1,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add Ellipsis typehint to reductions 1376479521
1250054633 https://github.com/pydata/xarray/pull/7048#issuecomment-1250054633 https://api.github.com/repos/pydata/xarray/issues/7048 IC_kwDOAMm_X85KglHp headtr1ck 43316012 2022-09-17T11:31:01Z 2022-09-17T11:31:01Z COLLABORATOR

Could any dev that uses linux rerun the generate_reductions and pytest --doctest-modules xarray/core/_reductions.py --accept? On windows I still get different results (maybe that should be fixed at some point...)

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add Ellipsis typehint to reductions 1376479521

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