-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Dropping indices doesn't work for dimensions without coordinates #3208
Comments
Thanks for the clear report @xlambein . In your example, Does that make sense? |
There is still something to be said for making |
@xlambein can I clarify something you said above:
Is this a mistype and actually you mean it should return |
Yes. I worry a bit about If there's any support for splitting |
@max-sixty Yep sorry! I got my testing code mixed up after making a change. I meant to have |
The way I understand it, dimensions without coordinates act as if they had That being said, it might be nice indeed to split |
MCVE Code Sample
Calling the following:
Produces this traceback:
Expected Output
Calling
drop
should return the following DataArray:Problem Description
Since I can index
arr
with dimensionx
, I would expectdrop
to work as well. The current behaviour seems inconsistent to me.Output of
xr.show_versions()
The text was updated successfully, but these errors were encountered: