-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
TST: clip inplace doesn't modify views with CoW #51402
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
Conversation
view = df[:] | ||
df.clip(lower=2, inplace=True) | ||
|
||
# Clip not actually inplace right now but could be |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you do: TODO(CoW): ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah no, could you add another test without a reference? I think it should pass after my where pr is in
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it is not actually inplace even without CoW.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep you are correct. We should refactor this if we decide to keep inplace here
thx @lithomas1 |
doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.