-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
CoW: Add warning for fillna #56288
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
CoW: Add warning for fillna #56288
Conversation
# Conflicts: # pandas/tests/indexing/test_chaining_and_caching.py
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.
Looks good!
if ( | ||
not copy | ||
and warn_copy_on_write() | ||
and already_warned is not None | ||
and not already_warned.warned_already | ||
): |
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.
Should this only be done in case of inplace=True
? Or is that already embodied in the not copy
?
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.
copy is only False if inplace is True
Co-authored-by: Joris Van den Bossche <[email protected]>
sits on the put mask pr #56168
xref #56019