Skip to content

Commit 2d38fc4

Browse files
rephrase
1 parent bc69338 commit 2d38fc4

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

pandas/core/series.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -266,12 +266,13 @@ class Series(base.IndexOpsMixin, NDFrame): # type: ignore[misc]
266266
name : Hashable, default None
267267
The name to give to the Series.
268268
copy : bool, default None
269-
Whether to copy input data. Only affects array or Series/Index input,
270-
because for other input (e.g. a list) a new array is created anyway.
271-
By default, will copy if the input data is a numpy or pandas array.
272-
For Series/Index input, a shallow copy of the data is made by default.
269+
Whether to copy input data, only relevant for array, Series, and Index
270+
inputs (for other input, e.g. a list, a new array is created anyway).
271+
Defaults to True for array input and False for Index/Series.
272+
Even when False for Index/Series, a shallow copy of the data is made.
273273
Set to False to avoid copying array input at your own risk (if you
274274
know the input data won't be modified elsewhere).
275+
Set to True to force copying Series/Index input up front.
275276
276277
See Also
277278
--------

0 commit comments

Comments
 (0)