home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 794715751

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/5008#issuecomment-794715751 https://api.github.com/repos/pydata/xarray/issues/5008 794715751 MDEyOklzc3VlQ29tbWVudDc5NDcxNTc1MQ== 14371165 2021-03-10T01:39:30Z 2021-03-10T05:08:32Z MEMBER

How do you linearly interpolate strings, objects or booleans?

The problem for me is that we drop all the non-valid variables when I want linear interpolation for most of my stuff. One can argue it could be either of bfill, ffill or nearest but I chose nearest because that's an option for both missing.interp and reindex_variables. I suppose we can add it as an option? But what should the option be called when we want a backup interpolation method that does not modify the elementwise values? And should it then only be reindex_variables specific?

Another case I've been pondering how to handle is when numbers are used as IDs. Then it doesn't make sense to do interpolation that messes with the elements as well. But these integers are not easily determined though because you can use integers just for performance reasons and then wouldn't mind it becoming floats later. Maybe they will continue staying a special case.

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