Skip to content

Commit 7369347

Browse files
authored
DOC: Fixed inconsistencies in pandas.DataFrame.pivot_table docstring parameter descriptions (#53605)
DOC: Inconsistencies in pandas.DataFrame.pivot_table parameter descriptions (#53351)
1 parent f0c8248 commit 7369347

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

pandas/core/frame.py

+13-13
Original file line numberDiff line numberDiff line change
@@ -8822,22 +8822,22 @@ def pivot(self, *, columns, index=lib.NoDefault, values=lib.NoDefault) -> DataFr
88228822
values : list-like or scalar, optional
88238823
Column or columns to aggregate.
88248824
index : column, Grouper, array, or list of the previous
8825-
If an array is passed, it must be the same length as the data. The
8826-
list can contain any of the other types (except list).
8827-
Keys to group by on the pivot table index. If an array is passed,
8828-
it is being used as the same manner as column values.
8825+
Keys to group by on the pivot table index. If a list is passed,
8826+
it can contain any of the other types (except list). If an array is
8827+
passed, it must be the same length as the data and will be used in
8828+
the same manner as column values.
88298829
columns : column, Grouper, array, or list of the previous
8830-
If an array is passed, it must be the same length as the data. The
8831-
list can contain any of the other types (except list).
8832-
Keys to group by on the pivot table column. If an array is passed,
8833-
it is being used as the same manner as column values.
8830+
Keys to group by on the pivot table column. If a list is passed,
8831+
it can contain any of the other types (except list). If an array is
8832+
passed, it must be the same length as the data and will be used in
8833+
the same manner as column values.
88348834
aggfunc : function, list of functions, dict, default numpy.mean
8835-
If list of functions passed, the resulting pivot table will have
8835+
If a list of functions is passed, the resulting pivot table will have
88368836
hierarchical columns whose top level are the function names
8837-
(inferred from the function objects themselves)
8838-
If dict is passed, the key is column to aggregate and value
8839-
is function or list of functions. If ``margin=True``,
8840-
aggfunc will be used to calculate the partial aggregates.
8837+
(inferred from the function objects themselves).
8838+
If a dict is passed, the key is column to aggregate and the value is
8839+
function or list of functions. If ``margin=True``, aggfunc will be
8840+
used to calculate the partial aggregates.
88418841
fill_value : scalar, default None
88428842
Value to replace missing values with (in the resulting pivot table,
88438843
after aggregation).

0 commit comments

Comments
 (0)