home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 633918109

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/3883#issuecomment-633918109 https://api.github.com/repos/pydata/xarray/issues/3883 633918109 MDEyOklzc3VlQ29tbWVudDYzMzkxODEwOQ== 10194086 2020-05-26T09:33:40Z 2020-05-26T09:34:25Z MEMBER

weighted(weights).mean(skipna=True) calls

https://github.com/pydata/xarray/blob/d1f7cb8fd95d588d3f7a7e90916c25747b90ad5a/xarray/core/weighted.py#L143

and

https://github.com/pydata/xarray/blob/d1f7cb8fd95d588d3f7a7e90916c25747b90ad5a/xarray/core/weighted.py#L130

da.fillna(0.0) in turn calls where(null(data), other). Thus null/ notnull is called twice. This could be optimized by doing self.null = obj.null() in __init__(...). This might also allow self.any_null = self.null.any() to skip NaN handling if there are none. However, this needs more thinking if a Dataset is passed. Probably overkill but leaving this here for reference.

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