MCPcopy
hub / github.com/pandas-dev/pandas / _check_copy_deprecation

Method _check_copy_deprecation

pandas/core/generic.py:4421–4430  ·  view source on GitHub ↗
(copy)

Source from the content-addressed store, hash-verified

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)

Callers 15

set_flagsMethod · 0.95
set_axisMethod · 0.95
rename_axisMethod · 0.95
reindex_likeMethod · 0.95
reindexMethod · 0.95
astypeMethod · 0.95
infer_objectsMethod · 0.95
alignMethod · 0.95
truncateMethod · 0.95
tz_convertMethod · 0.95
tz_localizeMethod · 0.95
swaplevelMethod · 0.80

Calls 1

find_stack_levelFunction · 0.90

Tested by

no test coverage detected