home / github / issues

Menu
  • Search all tables
  • GraphQL API

issues: 291405750

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
291405750 MDU6SXNzdWUyOTE0MDU3NTA= 1855 swap_dims should support dimension names that are not existing variables 1217238 closed 0     3 2018-01-25T00:08:26Z 2020-01-08T18:27:29Z 2020-01-08T18:27:29Z MEMBER      

Code Sample, a copy-pastable example if possible

python input_ds = xarray.Dataset({'foo': ('x', [1, 2])}, {'x': [0, 1]}) input_ds.swap_dims({'x': 'z'})

Problem description

Currently this results in the error KeyError: 'z'

Expected Output

We now support dimensions without associated coordinate variables. So swap_dims() should be able to create new dimensions (e.g., z in this example) even if there isn't already a coordinate variable.

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/1855/reactions",
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  completed 13221727 issue

Links from other tables

  • 0 rows from issues_id in issues_labels
  • 3 rows from issue in issue_comments
Powered by Datasette · Queries took 1.021ms · About: xarray-datasette