Skip to content

Commit f25957d

Browse files
Yi-Fan Wangcmp0xff
Yi-Fan Wang
authored andcommitted
fix(doc): pandas-dev#61432 typing
1 parent 5b0767a commit f25957d

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

pandas/core/frame.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9177,11 +9177,11 @@ def groupby(
91779177
91789178
Parameters
91799179
----------%s
9180-
columns : str or object or a list of str
9180+
columns : label or object or a list of previous
91819181
Column to use to make new frame's columns.
9182-
index : str or object or a list of str, optional
9182+
index : label or object or a list of the previous, optional
91839183
Column to use to make new frame's index. If not given, uses existing index.
9184-
values : str, object or a list of the previous, optional
9184+
values : label, object or a list of the previous, optional
91859185
Column(s) to use for populating new frame's values. If not
91869186
specified, all remaining columns will be used and the result will
91879187
have hierarchically indexed columns.

pandas/core/indexes/base.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1731,10 +1731,16 @@ def name(self) -> Hashable:
17311731
"""
17321732
Return Index or MultiIndex name.
17331733
1734+
Returns
1735+
-------
1736+
label (hashable object)
1737+
The name of the Index.
1738+
17341739
See Also
17351740
--------
17361741
Index.set_names: Able to set new names partially and by level.
17371742
Index.rename: Able to set new names partially and by level.
1743+
Series.name: Corresponding Series property.
17381744
17391745
Examples
17401746
--------

pandas/core/reshape/pivot.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -708,11 +708,11 @@ def pivot(
708708
----------
709709
data : DataFrame
710710
Input pandas DataFrame object.
711-
columns : str or object or a list of str
711+
columns : label or object or a list of the previous
712712
Column to use to make new frame's columns.
713-
index : str or object or a list of str, optional
713+
index : label or object or a list of the previous, optional
714714
Column to use to make new frame's index. If not given, uses existing index.
715-
values : str, object or a list of the previous, optional
715+
values : label, object or a list of the previous, optional
716716
Column(s) to use for populating new frame's values. If not
717717
specified, all remaining columns will be used and the result will
718718
have hierarchically indexed columns.

0 commit comments

Comments
 (0)