File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -265,8 +265,14 @@ class Series(base.IndexOpsMixin, NDFrame): # type: ignore[misc]
265265 See the :ref:`user guide <basics.dtypes>` for more usages.
266266 name : Hashable, default None
267267 The name to give to the Series.
268- copy : bool, default False
269- Copy input data. Only affects Series or 1d ndarray input. See examples.
268+ copy : bool, default None
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.
273+ Set to False to avoid copying array input at your own risk (if you
274+ know the input data won't be modified elsewhere).
275+ Set to True to force copying Series/Index input up front.
270276
271277 See Also
272278 --------
You can’t perform that action at this time.
0 commit comments