issues: 1292284929
This data as json
id | node_id | number | title | user | state | locked | assignee | milestone | comments | created_at | updated_at | closed_at | author_association | active_lock_reason | draft | pull_request | body | reactions | performed_via_github_app | state_reason | repo | type |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1292284929 | I_kwDOAMm_X85NBrQB | 6749 | What should `Dataset.count` return for missing dims? | 43316012 | open | 0 | 5 | 2022-07-03T11:49:12Z | 2022-07-14T17:27:23Z | COLLABORATOR | What is your issue?When using a dataset with multiple variables and using returns:<xarray.Dataset>Dimensions: (y: 2)Dimensions without coordinates: yData variables:a int32 3b (y) int32 1 1``` I can understand why "1" can be a valid answer, but the result is probably a bit philosophical. For my usecase I would like it to return an array of Maybe one could make this behavior adjustable with a kwarg, e.g. "missing_dim_value: {int, "size"}, default 1. |
{ "url": "https://api.github.com/repos/pydata/xarray/issues/6749/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
13221727 | issue |