home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 1172943712

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/6744#issuecomment-1172943712 https://api.github.com/repos/pydata/xarray/issues/6744 1172943712 IC_kwDOAMm_X85F6bNg 43316012 2022-07-02T18:46:17Z 2022-07-02T18:47:55Z COLLABORATOR

Would it be useful to add a function has_dim that returns e.g.: xr.DataArray([], dims="x").has_dim("x") #-> xr.DataArray(True) xr.Dataset({"x": ("x", []), "y": ("y", [])}).has_dim("x") # -> xr.Dataset({"x": True, "y": False}) ? Since these are scalar (no dims) they are nicely broadcastable and can be used in xarray pipelines.

But maybe this already works easily and I just don't know about it?

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