home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 705078481

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/4484#issuecomment-705078481 https://api.github.com/repos/pydata/xarray/issues/4484 705078481 MDEyOklzc3VlQ29tbWVudDcwNTA3ODQ4MQ== 1217238 2020-10-07T17:17:48Z 2020-10-07T17:17:48Z MEMBER

I think some version of xarray.map could indeed be pretty useful more generally. In particular, it could implement each of the ways to "align" variables between different datasets, e.g., should we use the intersection of the variables, or the union, inserting dummy variables with fill values? The dataset_join argument to xarray.apply_ufunc controls this behavior, but it would be nice to have a self-contained version of this.

One challenge for using this internally in xarray (vs. implementing things only on Dataset objects) is that the coordinates on the DataArray objects inside a Dataset can be redundant, so mapping over DataArrays may be less efficient, due to duplicate work on coordinates. In contrast, once everything is in Dataset objects, all the variables/coordinates are pre-aligned and de-deduplicated.

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