home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 909335676

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/5731#issuecomment-909335676 https://api.github.com/repos/pydata/xarray/issues/5731 909335676 IC_kwDOAMm_X842M1x8 2448579 2021-08-31T15:19:57Z 2021-08-31T15:19:57Z MEMBER

Ouch here's the problem: da_a has dtype int if it has no NaNs. this dtype could change but need not change after the masking.

Importantly skipna=False by default for int dtypes (since they can't represent NaNs).

The fix is to specify skipna=True explicitly in the .mean calls.

Alternatively we could stick an .astype(float) in _get_valid_values

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