home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 1397567627

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/7456#issuecomment-1397567627 https://api.github.com/repos/pydata/xarray/issues/7456 1397567627 IC_kwDOAMm_X85TTTCL 14077947 2023-01-19T20:34:04Z 2023-01-19T20:34:04Z CONTRIBUTOR

Okay, regardless of expected behavior here, my particular use-case requires that I transpose these dimensions. Can someone show me a way to do this? I tried to explain the xarray point of view to Keras, but Keras is really not interested ;)

I tried something like ds.expand_dims("sample").transpose('sample','nlat','nlon') to complete futility, probably something to do with the Frozen stuff if I had to guess.

The transpose method should change the dimension order on each array in the dataset. One particularly important component from Kai's comment above is that ds.dims does not tell you information about the axis order for the DataArrays in the Dataset. Can you please describe how the DataArray dimension order reported by the code below differs from your expectations? for var in ds.data_vars: print(ds[var].sizes)

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