Skip to content

Commit dfd10c8

Browse files
committed
Revert "Merge remote-tracking branch 'upstream/master' into 41423-doc-series-copy"
This reverts commit 5eab8f9, reversing changes made to 671cf86. Need to revert merge commit to find out why build is failing after pushing branches. These were the commands run to do the revert, at previous commit: check parent branches of the merge commit git cat-file -p 5eab8f9 then revert commit git revert --no-commit -m 2 5eab8f9 Then accepted incoming change in series.py, which removed my info and examples added.
1 parent 0e147a1 commit dfd10c8

File tree

1 file changed

+1
-31
lines changed

1 file changed

+1
-31
lines changed

pandas/core/series.py

+1-31
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ class Series(base.IndexOpsMixin, generic.NDFrame):
223223
name : str, optional
224224
The name to give to the Series.
225225
copy : bool, default False
226-
Copy input data. Only affects Series or 1d ndarray input. See examples.
226+
Copy input data.
227227
228228
Examples
229229
--------
@@ -251,36 +251,6 @@ class Series(base.IndexOpsMixin, generic.NDFrame):
251251
Note that the Index is first build with the keys from the dictionary.
252252
After this the Series is reindexed with the given Index values, hence we
253253
get all NaN as a result.
254-
255-
Constructing Series from a list with `copy=False`.
256-
257-
>>> r = [1, 2]
258-
>>> ser = pd.Series(r, copy=False)
259-
>>> ser.iloc[0] = 999
260-
>>> r
261-
[1, 2]
262-
>>> ser
263-
0 999
264-
1 2
265-
dtype: int64
266-
267-
Due to input data type the Series has a `copy` of the original data
268-
even though `copy=False`, so the data is unchanged.
269-
270-
Constructing Series from a 1d ndarray with `copy=False`.
271-
272-
>>> r = np.array([1, 2])
273-
>>> ser = pd.Series(r, copy=False)
274-
>>> ser.iloc[0] = 999
275-
>>> r
276-
array([999, 2])
277-
>>> ser
278-
0 999
279-
1 2
280-
dtype: int32
281-
282-
Due to input data type the Series has a `view` on the original data, so
283-
the data is changed as well.
284254
"""
285255

286256
_typ = "series"

0 commit comments

Comments
 (0)