@@ -1132,7 +1132,6 @@ def reset_index(self, level=None, drop=False, name=None, inplace=False):
1132
1132
1133
1133
Examples
1134
1134
--------
1135
-
1136
1135
>>> s = pd.Series([1, 2, 3, 4], name='foo',
1137
1136
... index=pd.Index(['a', 'b', 'c', 'd'], name='idx'))
1138
1137
@@ -3046,21 +3045,27 @@ def _gotitem(self, key, ndim, subset=None):
3046
3045
Examples
3047
3046
--------
3048
3047
3049
- >>> s = pd.Series(np.random.randn(10))
3048
+ >>> s = pd.Series([1, 2, 3, 4])
3049
+ >>> s
3050
+ 0 1
3051
+ 1 2
3052
+ 2 3
3053
+ 3 4
3054
+ dtype: int64
3050
3055
3051
3056
>>> s.agg('min')
3052
- -1.3018049988556679
3057
+ 1
3053
3058
3054
3059
>>> s.agg(['min', 'max'])
3055
- min -1.301805
3056
- max 1.127688
3057
- dtype: float64
3060
+ min 1
3061
+ max 4
3062
+ dtype: int64
3058
3063
3059
3064
See also
3060
3065
--------
3061
- pandas.Series.apply
3062
- pandas.Series.transform
3063
-
3066
+ pandas.Series.apply : Invoke function on a Series.
3067
+ pandas.Series.transform : Transform function producing
3068
+ a Series with like indexes.
3064
3069
""" )
3065
3070
3066
3071
@Appender (_agg_doc )
@@ -3315,7 +3320,6 @@ def rename(self, index=None, **kwargs):
3315
3320
3316
3321
Examples
3317
3322
--------
3318
-
3319
3323
>>> s = pd.Series([1, 2, 3])
3320
3324
>>> s
3321
3325
0 1
@@ -3337,7 +3341,6 @@ def rename(self, index=None, **kwargs):
3337
3341
3 2
3338
3342
5 3
3339
3343
dtype: int64
3340
-
3341
3344
"""
3342
3345
kwargs ['inplace' ] = validate_bool_kwarg (kwargs .get ('inplace' , False ),
3343
3346
'inplace' )
@@ -3507,7 +3510,6 @@ def memory_usage(self, index=True, deep=False):
3507
3510
3508
3511
Examples
3509
3512
--------
3510
-
3511
3513
>>> s = pd.Series(range(3))
3512
3514
>>> s.memory_usage()
3513
3515
104
@@ -3591,7 +3593,6 @@ def isin(self, values):
3591
3593
3592
3594
Examples
3593
3595
--------
3594
-
3595
3596
>>> s = pd.Series(['lama', 'cow', 'lama', 'beetle', 'lama',
3596
3597
... 'hippo'], name='animal')
3597
3598
>>> s.isin(['cow', 'lama'])
0 commit comments