File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff 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 --------
You can’t perform that action at this time.
0 commit comments