home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

1 row where issue = 1238838588 and user = 40182387 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

  • lstngr · 1 ✖

issue 1

  • Multi-dimensional extrapolation doesn't work · 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
1133833687 https://github.com/pydata/xarray/issues/6617#issuecomment-1133833687 https://api.github.com/repos/pydata/xarray/issues/6617 IC_kwDOAMm_X85DlO3X lstngr 40182387 2022-05-22T07:09:33Z 2022-05-22T07:09:33Z CONTRIBUTOR

You're right, thanks for the help. It seems that orthogonal dimensions are now interpolated independently by calling SciPy's interp1d multiple times, which explains why passing 'extrapolate' works. This behaviour has been introduced in #4155, in particular 7daad4fce3bf8ad9b9bc8e7baa104c476437e68d.

The documentation should be adapted to use @keewis's approach. I'd suggest including an example combining "advanced interpolation" and extrapolation, such as the one below:

python da = xr.DataArray( np.sin(0.3 * np.arange(20).reshape(5, 4)), [("x", np.arange(5)), ("y", [0.1, 0.2, 0.3, 0.4])], ) x = xr.DataArray([0.5, 1.5, 2.5, 3.5], dims="z") y = xr.DataArray([0.15, 0.25, 0.35, 0.45], dims="z")

Without extrapolation: python da.interp(x=x, y=y) <xarray.DataArray (z: 4)> array([ 0.55626357, 0.63496063, -0.46643289, nan]) Coordinates: x (z) float64 0.5 1.5 2.5 3.5 y (z) float64 0.15 0.25 0.35 0.45 Dimensions without coordinates: z

With extrapolation: python da.interp(x=x, y=y, kwargs={'fill_value': None}) <xarray.DataArray (z: 4)> array([ 0.55626357, 0.63496063, -0.46643289, -0.73507668]) Coordinates: x (z) float64 0.5 1.5 2.5 3.5 y (z) float64 0.15 0.25 0.35 0.45 Dimensions without coordinates: z

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Multi-dimensional extrapolation doesn't work 1238838588

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