home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 886951200

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-886951200 https://api.github.com/repos/pydata/xarray/issues/5365 886951200 IC_kwDOAMm_X8403c0g 14808389 2021-07-26T19:03:21Z 2021-07-26T19:03:21Z MEMBER

The use case is something similar to: python ds = xr.Dataset({"x": ("t", [0, 1]), "y": ("t", [2, 3]), "z": ("t", [4, 5])}) arr = xr.DataArray(data=[0, 2, 4], dims="cartesian", coords={"cartesian": ["x", "y", "z"]}) xr.cross(arr, ds, dim="cartesian") # result: Dataset with x, y, z variables This does return what I want it to (which is why I don't think it is a bug), but my worry was that since ds does not have a dimension called "cartesian" it might be surprising that this works (though good documentation might help).

In any case, I'd like to get the opinion of other maintainers: is the integrated conversion worth the trouble, or should we make combining / splitting variables easier?

{
    "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 161.002ms · About: xarray-datasette