home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 748498256

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/issues/4714#issuecomment-748498256 https://api.github.com/repos/pydata/xarray/issues/4714 748498256 MDEyOklzc3VlQ29tbWVudDc0ODQ5ODI1Ng== 14808389 2020-12-19T16:58:20Z 2020-12-19T16:58:20Z MEMBER

I think reindex would need to be changed

that's true, I only tried the special case where the data that would be used to do the forward fill is included in the result.

I guess this works but it's a bit cumbersome

yeah, to_dataset is probably not the right tool for pointwise indexing.

it does not fail if one of the sensors in the query list is missing

if I understand correctly, you would like to index with arbitrary values for time, but would like an error for missing values of sensor. Unfortunately, I don't think that is possible using a single call to sel. Instead, you could set the fill_value parameter of reindex to some other value (for example, -np.inf) and then drop these values after the pointwise indexing.

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