home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

4 rows where issue = 344608441 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

  • fujiisoup 3
  • raybellwaves 1

author_association 2

  • MEMBER 3
  • CONTRIBUTOR 1

issue 1

  • DOC: add interp example · 4 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
408586204 https://github.com/pydata/xarray/pull/2312#issuecomment-408586204 https://api.github.com/repos/pydata/xarray/issues/2312 MDEyOklzc3VlQ29tbWVudDQwODU4NjIwNA== fujiisoup 6815844 2018-07-28T06:18:32Z 2018-07-28T06:18:32Z MEMBER

Thanks, @raybellwaves.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  DOC: add interp example 344608441
408303091 https://github.com/pydata/xarray/pull/2312#issuecomment-408303091 https://api.github.com/repos/pydata/xarray/issues/2312 MDEyOklzc3VlQ29tbWVudDQwODMwMzA5MQ== fujiisoup 6815844 2018-07-27T03:47:03Z 2018-07-27T03:47:03Z MEMBER

Thanks.

I think you can do python da_dt64.interp(time=pd.date_range('1/1/2000', '1/3/2000', periods=3))

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  DOC: add interp example 344608441
408230809 https://github.com/pydata/xarray/pull/2312#issuecomment-408230809 https://api.github.com/repos/pydata/xarray/issues/2312 MDEyOklzc3VlQ29tbWVudDQwODIzMDgwOQ== raybellwaves 17162724 2018-07-26T20:50:22Z 2018-07-26T20:50:22Z CONTRIBUTOR

@fujiisoup I would like to add another example on how to update a DataArray with the interpolated data. I looked in http://xarray.pydata.org/en/stable/combining.html but couldn't work out how best to do it.

I tried using merge but it requires the DataArray's to be named.

I used concat in this example but it is not correct as I would like the coordinates to be in order (in-place may be the right word).

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

da_dt64 = xr.DataArray([1, 3], [('time', pd.date_range('1/1/2000', '1/3/2000', periods=2))]) a = da_dt64.interp(time=np.datetime64('2000-01-02')) xr.concat([da_dt64, a], dim='time')

<xarray.DataArray (time: 3)>

array([ 1., 3., 2.])

Coordinates:

* time (time) datetime64[ns] 2000-01-01 2000-01-03 2000-01-02

```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  DOC: add interp example 344608441
407939733 https://github.com/pydata/xarray/pull/2312#issuecomment-407939733 https://api.github.com/repos/pydata/xarray/issues/2312 MDEyOklzc3VlQ29tbWVudDQwNzkzOTczMw== fujiisoup 6815844 2018-07-26T00:41:17Z 2018-07-26T00:41:17Z MEMBER

Thanks for adding this to doc. It is very welcome if you could add an example for interp with datetime.

To do so, it would be best place to put it in here https://github.com/pydata/xarray/blob/master/doc/interpolation.rst

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  DOC: add interp example 344608441

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