home / github / issues

Menu
  • Search all tables
  • GraphQL API

issues: 355698213

This data as json

id node_id number title user state locked assignee milestone comments created_at updated_at closed_at author_association active_lock_reason draft pull_request body reactions performed_via_github_app state_reason repo type
355698213 MDU6SXNzdWUzNTU2OTgyMTM= 2392 Improving interpolate_na()'s limit argument 13837821 closed 0     0 2018-08-30T18:16:07Z 2019-11-15T14:53:17Z 2019-11-15T14:53:17Z CONTRIBUTOR      

I've been working with some time-series data with occasional nans peppered throughout. I want to interpolate small gaps of nans (say, when there is a single isolated nan or perhaps a block of two) but leave larger blocks as nans. That is, it's not appropriate to fill large gaps, but it acceptable to do so for small gaps.

I was hoping interpolate_na() with the limit argument would do exactly this, but it turns out that if you specify, say, limit=2, it will fill the first two nans of nan-blocks of any length, no matter how long. There are definitely solutions for dealing with this, but it seems like a common issue, and has cropped up over on Pandas as well.

I'm not able to attempt tackling this right now, but I guess I wanted to put in a feature request for an additional argument to interpolate_na() that would do this.

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/2392/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  completed 13221727 issue

Links from other tables

  • 0 rows from issues_id in issues_labels
  • 0 rows from issue in issue_comments
Powered by Datasette · Queries took 0.597ms · About: xarray-datasette