Skip to content

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

Merged
merged 4 commits into from
Feb 15, 2023
Merged

ENH: Add lazy copy to where #51336

merged 4 commits into from
Feb 15, 2023

Conversation

phofl
Copy link
Member

@phofl phofl commented Feb 11, 2023



@pytest.mark.parametrize("dtype", ["int64", "Int64"])
def test_where_noop(using_copy_on_write, dtype):
Copy link
Member

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.

Copy link
Member Author

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

@jorisvandenbossche
Copy link
Member

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

@phofl
Copy link
Member Author

phofl commented Feb 15, 2023

Will rebase after the other pr is merged

#51403

@phofl phofl added this to the 2.0 milestone Feb 15, 2023
@lithomas1
Copy link
Member

thanks @phofl

@lithomas1 lithomas1 merged commit cefc6f8 into pandas-dev:main Feb 15, 2023
@phofl phofl deleted the cow_where branch February 15, 2023 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants