We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28ba08c commit ece5d46Copy full SHA for ece5d46
pandas/core/generic.py
@@ -2952,7 +2952,12 @@ def copy(self, deep=True):
2952
Parameters
2953
----------
2954
deep : boolean or string, default True
2955
- Make a deep copy, i.e. also copy data
+ Make a deep copy, i.e. also copy data.
2956
+
2957
+ Note that when ``deep=True`` data is copied unless ``dtype=object``,
2958
+ in which case only the reference to the object is copied. This is
2959
+ in contrast to ``copy.deepcopy`` in the Standard Library, which
2960
+ recursively copies object data.
2961
2962
Returns
2963
-------
0 commit comments