home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

5 rows where issue = 408010761 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 3

  • dcherian 2
  • mada0007 2
  • fujiisoup 1

author_association 2

  • MEMBER 3
  • NONE 2

issue 1

  • rolling count not working · 5 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
461824903 https://github.com/pydata/xarray/issues/2755#issuecomment-461824903 https://api.github.com/repos/pydata/xarray/issues/2755 MDEyOklzc3VlQ29tbWVudDQ2MTgyNDkwMw== dcherian 2448579 2019-02-08T14:43:59Z 2019-02-08T14:43:59Z MEMBER

We should print a better error message when the user passes a dimension to rolling.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  rolling count not working 408010761
461717329 https://github.com/pydata/xarray/issues/2755#issuecomment-461717329 https://api.github.com/repos/pydata/xarray/issues/2755 MDEyOklzc3VlQ29tbWVudDQ2MTcxNzMyOQ== mada0007 44284270 2019-02-08T07:42:34Z 2019-02-08T07:52:22Z NONE

Hi all so finally it worked, just for the benefit of others this is how it wents aa = dset.where(dset.precip<50).rolling(time=59).count() this works but brings up a dataset which i then convert to xarray dataset with aa = aa.to_array() Thanks to all for the guidance.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  rolling count not working 408010761
461712654 https://github.com/pydata/xarray/issues/2755#issuecomment-461712654 https://api.github.com/repos/pydata/xarray/issues/2755 MDEyOklzc3VlQ29tbWVudDQ2MTcxMjY1NA== fujiisoup 6815844 2019-02-08T07:16:15Z 2019-02-08T07:16:15Z MEMBER

You don't need 'time' argument in .count. Probably aa = dset.where(dset.precip<50).rolling(time=59).count()

{
    "total_count": 2,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 1,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  rolling count not working 408010761
461707837 https://github.com/pydata/xarray/issues/2755#issuecomment-461707837 https://api.github.com/repos/pydata/xarray/issues/2755 MDEyOklzc3VlQ29tbWVudDQ2MTcwNzgzNw== mada0007 44284270 2019-02-08T06:48:24Z 2019-02-08T06:48:24Z NONE

Hi thanks but yes I want something like you have written I tried it and got the following error aa = dset.where(dset.precip<50).rolling(time=59).count('time')

Traceback (most recent call last): File "/Users/mada0007/anaconda3/envs/RAWORK/lib/python3.6/site-packages/IPython/core/interactiveshell.py", line 3267, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File "<ipython-input-102-681874095ab1>", line 1, in <module> aa = dset.where(dset.precip<50).rolling(time=59).count('time') TypeError: rolling_count() takes 1 positional argument but 2 were given

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  rolling count not working 408010761
461706136 https://github.com/pydata/xarray/issues/2755#issuecomment-461706136 https://api.github.com/repos/pydata/xarray/issues/2755 MDEyOklzc3VlQ29tbWVudDQ2MTcwNjEzNg== dcherian 2448579 2019-02-08T06:37:31Z 2019-02-08T06:37:31Z MEMBER

I'm very confused by your code. I think you want dset.where(dset.precip < 50).rolling(time=59).count('time')?

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  rolling count not working 408010761

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