-
-
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
Unable to run example for xarray.DataArray.to_unstacked_dataset #3148
Comments
There's a typo in the docstring example. It should be |
cc @nbren12 |
Huh, it looks like that change in the API that happened in the last stages of the PR didn't make it into the example docs. I will try to submit a PR fixing that sometime soon. |
Actually, the docs seem correct: Line 2895 in 8da3f67
Am I missing something here? |
The correction works, many thanks. The incorrect version is still on http://xarray.pydata.org/en/stable/, maybe that needs to be updated somehow? |
Could you link the specific page that is wrong? |
It's here: Under examples the line that reads:
should read
Thanks for looking into it! |
Okay. it looks like the docstring for xarray/xarray/core/dataarray.py Line 1654 in 77a31e5
I will can submit a PR fixing that soon. |
it looks like this should have been closed by #4408 |
Hello,
When I try to run the example for
xarray.DataArray.to_unstacked_dataset
I get the error:
when running the line
stacked = data.to_stacked_array("z", ['y'])
This is my setup:
Any idea what might be going wrong?
Many thanks for your help!
The text was updated successfully, but these errors were encountered: