@@ -1494,17 +1494,6 @@ def reset_index(
1494
1494
3 4
1495
1495
Name: foo, dtype: int64
1496
1496
1497
- To update the Series in place, without generating a new one
1498
- set `inplace` to True. Note that it also requires ``drop=True``.
1499
-
1500
- >>> s.reset_index(inplace=True, drop=True)
1501
- >>> s
1502
- 0 1
1503
- 1 2
1504
- 2 3
1505
- 3 4
1506
- Name: foo, dtype: int64
1507
-
1508
1497
The `level` parameter is interesting for Series with a multi-level
1509
1498
index.
1510
1499
@@ -2242,11 +2231,9 @@ def drop_duplicates(
2242
2231
Name: animal, dtype: object
2243
2232
2244
2233
The value ``False`` for parameter 'keep' discards all sets of
2245
- duplicated entries. Setting the value of 'inplace' to ``True`` performs
2246
- the operation inplace and returns ``None``.
2234
+ duplicated entries.
2247
2235
2248
- >>> s.drop_duplicates(keep=False, inplace=True)
2249
- >>> s
2236
+ >>> s.drop_duplicates(keep=False)
2250
2237
1 cow
2251
2238
3 beetle
2252
2239
5 hippo
@@ -3490,17 +3477,6 @@ def sort_values(
3490
3477
0 NaN
3491
3478
dtype: float64
3492
3479
3493
- Sort values inplace
3494
-
3495
- >>> s.sort_values(ascending=False, inplace=True)
3496
- >>> s
3497
- 3 10.0
3498
- 4 5.0
3499
- 2 3.0
3500
- 1 1.0
3501
- 0 NaN
3502
- dtype: float64
3503
-
3504
3480
Sort values putting NAs first
3505
3481
3506
3482
>>> s.sort_values(na_position='first')
@@ -3750,16 +3726,6 @@ def sort_index(
3750
3726
1 c
3751
3727
dtype: object
3752
3728
3753
- Sort Inplace
3754
-
3755
- >>> s.sort_index(inplace=True)
3756
- >>> s
3757
- 1 c
3758
- 2 b
3759
- 3 a
3760
- 4 d
3761
- dtype: object
3762
-
3763
3729
By default NaNs are put at the end, but use `na_position` to place
3764
3730
them at the beginning
3765
3731
@@ -5619,14 +5585,6 @@ def dropna(
5619
5585
1 2.0
5620
5586
dtype: float64
5621
5587
5622
- Keep the Series with valid entries in the same variable.
5623
-
5624
- >>> ser.dropna(inplace=True)
5625
- >>> ser
5626
- 0 1.0
5627
- 1 2.0
5628
- dtype: float64
5629
-
5630
5588
Empty strings are not considered NA values. ``None`` is considered an
5631
5589
NA value.
5632
5590
0 commit comments