Skip to content

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 requested a review from rhshadrach as a code owner February 11, 2024 00:26
@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
@phofl phofl requested a review from MarcoGorelli as a code owner February 11, 2024 13:05
"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
@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