(copy)
| 4419 | |
| 4420 | @staticmethod |
| 4421 | def _check_copy_deprecation(copy): |
| 4422 | if copy is not lib.no_default: |
| 4423 | warnings.warn( |
| 4424 | "The copy keyword is deprecated and will be removed in a future " |
| 4425 | "version. Copy-on-Write is active in pandas since 3.0 which utilizes " |
| 4426 | "a lazy copy mechanism that defers copies until necessary. Use " |
| 4427 | ".copy() to make an eager copy if necessary.", |
| 4428 | Pandas4Warning, |
| 4429 | stacklevel=find_stack_level(), |
| 4430 | ) |
| 4431 | |
| 4432 | # issue 58667 |
| 4433 | @deprecate_kwarg(Pandas4Warning, "method", new_arg_name=None) |
no test coverage detected