-
-
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
can't do in-place clip() with DataArrays. #1997
Comments
Hmm. We currently just blindly copy the docstring/method from NumPy here. We should probably update this to clarify that we don't support |
MaskedArrays had a similar problem, IIRC, because it was blindly copying the NDArray docstrings. Not going to be easy to do, though. "we don't support |
Not really, but the tendency is to go towards getting rid of inplace operations altogether. |
Closing as |
Code Sample, a copy-pastable example if possible
Where
foo
is a DataArray, there doesn't seem to be a nice way to useclip()
in-place.You get a similar exception if you do
np.clip(foo, ..., out=foo)
.Problem description
Note the docstring for
DataArray.clip()
:So, the docstring advertises support for
out
.The text was updated successfully, but these errors were encountered: