home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 531807552

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions performed_via_github_app issue
https://github.com/pydata/xarray/pull/3302#issuecomment-531807552 https://api.github.com/repos/pydata/xarray/issues/3302 531807552 MDEyOklzc3VlQ29tbWVudDUzMTgwNzU1Mg== 2448579 2019-09-16T14:39:41Z 2019-09-16T14:39:41Z MEMBER

The thing I find weird is that for

<xarray.DataArray (y: 9)> array([nan, nan, nan, 1., nan, nan, 4., nan, nan]) Coordinates: * y (y) int64 0 1 2 3 4 5 6 7 8

the center gap's length = 7-4 = 3 which is the number of NaNs + 1. But maybe this is OK.

  1. We should check what that pandas PR does and align with that
  2. interp calls scipy.interpolate.interp which does do extrapolation, so we should figure out a sensible solution for the edges (extrapolating coordinates using the first and last spacing seems reasonable to me).

@stefraynaud I don't have time to work on this now. Please feel free to modify this and open a new PR. You could try to push to this branch but I'm not sure it will work.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  492866552
Powered by Datasette · Queries took 239.547ms · About: xarray-datasette