home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 280208293

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/1271#issuecomment-280208293 https://api.github.com/repos/pydata/xarray/issues/1271 280208293 MDEyOklzc3VlQ29tbWVudDI4MDIwODI5Mw== 1217238 2017-02-16T02:11:22Z 2017-02-16T02:12:25Z MEMBER

Historically, we dropped attributes in arithmetic because attributes are often used for units and we didn't want to do computation that results in the wrong units. Blinding propagating metadata can lead to it ending up in the wrong place.

Also, if you are combining multiple DataArray objects with different attrs, there are a number of options for combining them, and it wasn't obvious which is the right strategy.

But in practice, this is something that a lot of people want (better to have stale metadata than no metadata at all), so maybe I made the wrong choice here. At the very least, I would be comfortable with an option to set keep_attrs=True for every operation and/or to specify a merge strategy for combining attrs in arithmetic. (I guess I've changed my opinion from when rejected this proposal from @jhamman several years ago.)

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