home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 1255120923

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/5436#issuecomment-1255120923 https://api.github.com/repos/pydata/xarray/issues/5436 1255120923 IC_kwDOAMm_X85Kz6Ab 14808389 2022-09-22T14:36:23Z 2022-09-22T17:27:13Z MEMBER

instead of using the Dataset constructor it's actually better to manually convert to a Dataset before passing to xr.merge: ```python arr1 = xr.DataArray([0, 1], dims="x", attrs={"units": "m"}, name="a") arr2 = xr.DataArray([2, 3, 4], dims="y", attrs={"units": "s"})

xr.merge([arr1.to_dataset(), arr2.to_dataset(name="b")], ...) `` that way, the merge is configurable but we avoid thepromote_attrs=True`

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