home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 1003544001

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/4687#issuecomment-1003544001 https://api.github.com/repos/pydata/xarray/issues/4687 1003544001 IC_kwDOAMm_X8470N3B 14808389 2022-01-01T11:16:38Z 2022-01-02T21:30:36Z MEMBER

I believe it is best to allow customizing the behavior, so I added a keep_attrs parameter. I named the parameter keep_attrs but it could just as well be called combine_attrs (not sure which is better?) It defaults to dropping the attrs (keep_attrs=False) and will keep the attrs of x for keep_attrs=True. Because we're using apply_ufunc under the hood any value accepted by merge_attrs can be passed, with the only difference being that keep_attrs=True is not equal to keep_attrs="override".

Edit: using a different keep_attrs handler does not affect the name of the resulting object. Because this potentially seems like a breaking change I would do that change in a different PR if we think it is important.

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