Skip to content

Commit 19ccb4b

Browse files
DOC: update Series() docstring about copy behaviour
1 parent 47fea80 commit 19ccb4b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

pandas/core/series.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,11 @@ 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+
Copy input data. By default, will copy if the input data is a numpy or
270+
pandas array. Set to False to avoid copying, at your own risk (if you
271+
know the input data won't be modified elsewhere).
272+
Only affects Series or 1d ndarray input. See examples.
270273
271274
See Also
272275
--------

0 commit comments

Comments
 (0)