-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
ENH: Add lazy copy to where #51336
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
ENH: Add lazy copy to where #51336
Conversation
|
||
|
||
@pytest.mark.parametrize("dtype", ["int64", "Int64"]) | ||
def test_where_noop(using_copy_on_write, dtype): |
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 suppose you put it intentionally in test_indexing.py instead of test_methods.py?
Personally I would still put it in test_methods.py, although it is an indexing like method, everything in this file are actual indexing operations.
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.
Yeah was intentional, but ok to move over. We will have to split them up anyway. Wanted to tackle this after 2.0
It seems there is an actual relevant test failure with CoW: FAILED pandas/tests/frame/indexing/test_where.py::test_where_copies_with_noop[Series] - AssertionError: Series are different |
Will rebase after the other pr is merged |
thanks @phofl |
doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.