home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 630906095

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/4079#issuecomment-630906095 https://api.github.com/repos/pydata/xarray/issues/4079 630906095 MDEyOklzc3VlQ29tbWVudDYzMDkwNjA5NQ== 1197350 2020-05-19T15:42:07Z 2020-05-19T15:42:07Z MEMBER

Is there a way to create arrays and datasets with unnamed dimensions?

No. Xarray's data model requires all dimensions to have a name.

Xarray allows you to create DataArrays without specifying dimensions:

python import xarray as xr import numpy as np da = xr.DataArray(np.zeros((4, 5)))

Xarray will choose dimension names in this case (dim_0, dim_1, etc.)

This doesn't work with creating Datasets, because you have to specify all variables' dimensions in the Dataset constructor.

I imagine that unnamed dimensions would break lots of internal Xarray logic.

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