home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

1 row where issue = 344608441 and user = 17162724 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

  • raybellwaves · 1 ✖

issue 1

  • DOC: add interp example · 1 ✖

author_association 1

  • CONTRIBUTOR 1
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
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

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