@@ -2526,7 +2526,7 @@ def align(self, other, join='outer', axis=None, level=None, copy=True,
2526
2526
broadcast_axis = broadcast_axis )
2527
2527
2528
2528
def rename (self , index = None , ** kwargs ):
2529
- """Alter Series row labels or name
2529
+ """Alter Series index labels or name
2530
2530
2531
2531
Function / dict values must be unique (1-to-1). Labels not contained in
2532
2532
a dict / Series will be left as-is. Extra labels listed don't throw an
@@ -2538,10 +2538,11 @@ def rename(self, index=None, **kwargs):
2538
2538
2539
2539
Parameters
2540
2540
----------
2541
- index : scalar, list-like , dict-like or function, optional
2541
+ index : scalar, hashable sequence , dict-like or function, optional
2542
2542
dict-like or functions are transformations to apply to
2543
2543
the index.
2544
- Scalar or list-like will alter the ``Series.name`` attribute.
2544
+ Scalar or hashable sequence-like will alter the ``Series.name``
2545
+ attribute.
2545
2546
copy : boolean, default True
2546
2547
Also copy underlying data
2547
2548
inplace : boolean, default False
@@ -2557,7 +2558,7 @@ def rename(self, index=None, **kwargs):
2557
2558
2558
2559
See Also
2559
2560
--------
2560
- pandas.DataFrame .rename_axis
2561
+ pandas.Series .rename_axis
2561
2562
2562
2563
Examples
2563
2564
--------
0 commit comments