home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 140794893

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/422#issuecomment-140794893 https://api.github.com/repos/pydata/xarray/issues/422 140794893 MDEyOklzc3VlQ29tbWVudDE0MDc5NDg5Mw== 10194086 2015-09-16T16:29:22Z 2015-09-16T16:29:32Z MEMBER

This is has to be adjusted if there are NaN in the array. weights.sum(dim) needs to be corrected not to count weights on indices where there is a NaN in self.

Is there a better way to get the correct weights than:

total_weights = weights.sum(dim) * self / self

It should probably not be used on a Dataset as every DataArray may have its own NaN structure. Or the equivalent Dataset method should loop through the DataArrays.

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