Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dataset.concat() doesn't preserve coordinates-variables order #1073

Closed
fmaussion opened this issue Nov 2, 2016 · 1 comment
Closed

Dataset.concat() doesn't preserve coordinates-variables order #1073

fmaussion opened this issue Nov 2, 2016 · 1 comment

Comments

@fmaussion
Copy link
Member

Follow-up to #1049

Example:

import xarray as xr
import numpy as np

ds = xr.Dataset()
for vn in ['a', 'b', 'c']:
    ds[vn] = xr.DataArray(np.arange(10), dims=['t'])
dsg = ds.groupby('t').mean()
print(list(ds.variables.keys()))
out : ['t', 'a', 'b', 'c']
print(list(dsg.variables.keys()))
out: ['a', 'b', 'c', 't']
@fmaussion
Copy link
Member Author

This doesn't seem to happen any more

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant