Skip to content

Commit 3660bc1

Browse files
committed
Explicit description of deep for True and False
1 parent ece5d46 commit 3660bc1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/core/generic.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -2952,7 +2952,8 @@ def copy(self, deep=True):
29522952
Parameters
29532953
----------
29542954
deep : boolean or string, default True
2955-
Make a deep copy, i.e. also copy data.
2955+
Make a deep copy, including a copy of the data and the indices.
2956+
With ``deep=False`` neither the indices or the data are copied.
29562957
29572958
Note that when ``deep=True`` data is copied unless ``dtype=object``,
29582959
in which case only the reference to the object is copied. This is

0 commit comments

Comments
 (0)