Skip to content
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: Deprecate copy keyword from first set of methods #57347

Merged
merged 8 commits into from
Feb 24, 2024

Conversation

phofl
Copy link
Member

@phofl phofl commented Feb 11, 2024

  • closes #xxxx (Replace xxxx with the GitHub issue number)
  • Tests added and passed if fixing a bug or adding a new feature
  • All code checks passed.
  • Added type annotations to new arguments/methods/functions.
  • Added an entry in the latest doc/source/whatsnew/vX.X.X.rst file if fixing a bug or adding a new feature.

@phofl phofl added Deprecate Functionality to remove in pandas Copy / view semantics labels Feb 11, 2024
@phofl phofl added this to the 3.0 milestone Feb 11, 2024
"version. Copy-on-Write is active in pandas since 3.0 which utilizes "
"a lazy copy mechanism that defers copies until necessary. Use "
".copy() to make an eager copy if necessary.",
DeprecationWarning,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DeprecationWarning because we're going to start following DeprecationWarning -> FutureWarning?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, my intention was to switch to FutureWarning in 3.2, but I suspect that copy=False is used by a lot of downstream libraries

@mroeschke mroeschke merged commit 3f05c4f into pandas-dev:main Feb 24, 2024
46 of 47 checks passed
@mroeschke
Copy link
Member

Thanks @phofl

@phofl phofl deleted the deprecate_copy_keyword branch February 24, 2024 19:12
pmhatre1 pushed a commit to pmhatre1/pandas-pmhatre1 that referenced this pull request May 7, 2024
* CoW: Remove a few copy=False statements

* Cow: Deprecate copy keyword from first set of methods

* Fixup

* Update

* Update

* Update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Copy / view semantics Deprecate Functionality to remove in pandas
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants