home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

9 rows where issue = 467814673 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 5

  • dcherian 3
  • mada0007 3
  • ghost 1
  • max-sixty 1
  • spencerkclark 1

author_association 2

  • MEMBER 5
  • NONE 4

issue 1

  • selecting only october to march from monthly data using xarray · 9 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
879975673 https://github.com/pydata/xarray/issues/3124#issuecomment-879975673 https://api.github.com/repos/pydata/xarray/issues/3124 MDEyOklzc3VlQ29tbWVudDg3OTk3NTY3Mw== max-sixty 5635139 2021-07-14T15:10:40Z 2021-07-14T15:10:40Z MEMBER

@NayanTalmale please open a discussion with a reproducible example

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  selecting only october to march from monthly data using xarray 467814673
879827498 https://github.com/pydata/xarray/issues/3124#issuecomment-879827498 https://api.github.com/repos/pydata/xarray/issues/3124 MDEyOklzc3VlQ29tbWVudDg3OTgyNzQ5OA== ghost 10137 2021-07-14T11:54:10Z 2021-07-14T11:56:46Z NONE

@dcherian, @spencerkclark , and @mada0007 Could u plz tell me that how to join that data after selecting Oct-March. Basically, I want to say whenever I am plotting a time series of this selected monthly data. My time time series is not continuous. Kindly plz let me know. I am attaching a plot for the reference. Example.pdf

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  selecting only october to march from monthly data using xarray 467814673
511258189 https://github.com/pydata/xarray/issues/3124#issuecomment-511258189 https://api.github.com/repos/pydata/xarray/issues/3124 MDEyOklzc3VlQ29tbWVudDUxMTI1ODE4OQ== mada0007 44284270 2019-07-15T02:25:27Z 2019-07-15T02:25:27Z NONE

Thanks to all, it works!

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  selecting only october to march from monthly data using xarray 467814673
511209340 https://github.com/pydata/xarray/issues/3124#issuecomment-511209340 https://api.github.com/repos/pydata/xarray/issues/3124 MDEyOklzc3VlQ29tbWVudDUxMTIwOTM0MA== dcherian 2448579 2019-07-14T14:53:57Z 2019-07-14T14:53:57Z MEMBER

If you use data = xr.open_mfdataset(...), the above solution will work

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  selecting only october to march from monthly data using xarray 467814673
511208032 https://github.com/pydata/xarray/issues/3124#issuecomment-511208032 https://api.github.com/repos/pydata/xarray/issues/3124 MDEyOklzc3VlQ29tbWVudDUxMTIwODAzMg== mada0007 44284270 2019-07-14T14:35:39Z 2019-07-14T14:35:39Z NONE

Hi, the problem here is that I have multiple netcd files and the dats vary accros time.

is there any other way to do this ?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  selecting only october to march from monthly data using xarray 467814673
511204486 https://github.com/pydata/xarray/issues/3124#issuecomment-511204486 https://api.github.com/repos/pydata/xarray/issues/3124 MDEyOklzc3VlQ29tbWVudDUxMTIwNDQ4Ng== dcherian 2448579 2019-07-14T13:49:12Z 2019-07-14T13:49:12Z MEMBER

Nice! I should use sel more

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  selecting only october to march from monthly data using xarray 467814673
511204028 https://github.com/pydata/xarray/issues/3124#issuecomment-511204028 https://api.github.com/repos/pydata/xarray/issues/3124 MDEyOklzc3VlQ29tbWVudDUxMTIwNDAyOA== spencerkclark 6628425 2019-07-14T13:42:47Z 2019-07-14T13:42:47Z MEMBER

I normally use something like this, which results in the equivalent of @dcherian's suggestion, but is a bit more direct: python data = data.sel(time=data.time.dt.month.isin([1, 2, 3, 10, 11, 12])) @mada0007 you can then subset in time to truncate the time series further afterwards: python result = data.sel(time=slice('1950-04', '1960-04'))

{
    "total_count": 6,
    "+1": 6,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  selecting only october to march from monthly data using xarray 467814673
511203557 https://github.com/pydata/xarray/issues/3124#issuecomment-511203557 https://api.github.com/repos/pydata/xarray/issues/3124 MDEyOklzc3VlQ29tbWVudDUxMTIwMzU1Nw== mada0007 44284270 2019-07-14T13:36:50Z 2019-07-14T13:36:50Z NONE

Hi yes except that selected series start are ordered from 1,2,3,10,11,12, 1, 2, 3, 10,11, 12 in that order. what I really want is 10,11,12, 1,2,3 10,11,12,1,2,3 the first 1,2,3 in the data must be igored so from 10,11,12 the next 1,2,3 should start from the following year

Thanks

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  selecting only october to march from monthly data using xarray 467814673
511202616 https://github.com/pydata/xarray/issues/3124#issuecomment-511202616 https://api.github.com/repos/pydata/xarray/issues/3124 MDEyOklzc3VlQ29tbWVudDUxMTIwMjYxNg== dcherian 2448579 2019-07-14T13:24:25Z 2019-07-14T13:24:25Z MEMBER

You want something like data.where(data.time.dt.month.isin([1,2,3,10,11,12]), drop=True) I think

{
    "total_count": 5,
    "+1": 5,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  selecting only october to march from monthly data using xarray 467814673

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 872.7ms · About: xarray-datasette
  • Sort ascending
  • Sort descending
  • Facet by this
  • Hide this column
  • Show all columns
  • Show not-blank rows