home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 692574610

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/3570#issuecomment-692574610 https://api.github.com/repos/pydata/xarray/issues/3570 692574610 MDEyOklzc3VlQ29tbWVudDY5MjU3NDYxMA== 10194086 2020-09-15T08:59:49Z 2020-09-15T09:58:49Z MEMBER

The problem is that xarray calls where(isnull(data), data, other) for all variables. It also uses dataset_join="left", thus other is NaN for all DataArrays that are not passed... I think fillna should be made a no-op if notnull(data).any()

https://github.com/pydata/xarray/blob/66ab0ae4f3aa3c461357a5a895405e81357796b1/xarray/core/duck_array_ops.py#L284-L288

A possible workaround is to use da.fillna(value={"A": 0, "C": True})

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