home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

2 rows where user = 7123715 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: created_at (date), updated_at (date)

issue 2

  • Keep index dimension when selecting only a single coord 1
  • Support for monotonically decreasing indices in interpolate_na 1

user 1

  • cvoivret · 2 ✖

author_association 1

  • NONE 2
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
789652922 https://github.com/pydata/xarray/issues/4637#issuecomment-789652922 https://api.github.com/repos/pydata/xarray/issues/4637 MDEyOklzc3VlQ29tbWVudDc4OTY1MjkyMg== cvoivret 7123715 2021-03-03T11:39:38Z 2021-03-03T11:39:38Z NONE

A simple trick could be to not use the coordinate while interpolating. An example with the same data but the second dataset has a decreasing index.

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

da = xr.DataArray([0, 2, np.nan, 3, 3.25], dims="x", coords={"x": [0, 1, 2, 3, 4]}) da1= xr.DataArray([3.25, 3,np.nan,2,0],dims='x',coords={"x":[4,3,2,1,0]})

da_inter=da.interpolate_na(dim='x', method='cubic') da1_inter=da1.interpolate_na(dim='x',method='cubic',use_coordinate=False) ```

As far as I understand interpolation, the result is the same.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Support for monotonically decreasing indices in interpolate_na 754789691
788661534 https://github.com/pydata/xarray/issues/3458#issuecomment-788661534 https://api.github.com/repos/pydata/xarray/issues/3458 MDEyOklzc3VlQ29tbWVudDc4ODY2MTUzNA== cvoivret 7123715 2021-03-02T06:48:08Z 2021-03-02T06:48:08Z NONE

Hi, I'm new to OSS and I would like to take this issue. After some digging, the initial question seems to be related to vectorized indexing. We could add in a code block multiple ways to extract a column (and keep the second dimension) in the beginning of the section. It is rather specific example but, as @dcherian say, it comes up oftten enough. I can make it if the issue still matter.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Keep index dimension when selecting only a single coord 514077742

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