home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 886712077

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/5365#issuecomment-886712077 https://api.github.com/repos/pydata/xarray/issues/5365 886712077 IC_kwDOAMm_X8402icN 14808389 2021-07-26T13:38:53Z 2021-07-26T13:38:53Z MEMBER

I finally got around to testing this. This works really well for the use cases I tried, but the automatic conversion of Datasets with three variables to a DataArray is a bit surprising: python xr.cross(arr, ds, dim="cartesian") # ← ds does not have a "cartesian" dimension not sure what to do about that. @pydata/xarray, any ideas?

To be clear, the idea was to have a convenient way to convert a Dataset with three identically dimensioned variables to a DataArray with an additional additional dimension. If there's a concise way to do that I would lean towards not doing that in cross() (even though I was the one to propose it). For example: python xr.cross( arr, ds.to_array(concat_dim="cartesian"), dim="cartesian" ).to_dataset(cut_dim="cartesian")

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