File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -256,6 +256,7 @@ class Series(base.IndexOpsMixin, generic.NDFrame):
256
256
get all NaN as a result.
257
257
258
258
Constructing Series from an array with `copy=False`.
259
+
259
260
>>> r = [1,2]
260
261
>>> ser = pd.Series(r, copy=False)
261
262
>>> ser.iloc[0] = 999
@@ -267,9 +268,10 @@ class Series(base.IndexOpsMixin, generic.NDFrame):
267
268
dtype: int64
268
269
269
270
The Series returns a `copy` of the original data, so
270
- `r` is unchanged.
271
+ the original data is unchanged.
271
272
272
273
Constructing Series from a `numpy.array` with `copy=False`.
274
+
273
275
>>> r = np.array([1,2])
274
276
>>> ser = pd.Series(r, copy=False)
275
277
>>> ser.iloc[0] = 999
@@ -281,7 +283,7 @@ class Series(base.IndexOpsMixin, generic.NDFrame):
281
283
dtype: int32
282
284
283
285
The Series returns a `view` on the original data, so
284
- `r` is changed as well.
286
+ the original data is changed as well.
285
287
"""
286
288
287
289
_typ = "series"
You can’t perform that action at this time.
0 commit comments