Skip to content

Commit 5990c21

Browse files
committed
DOC: Inconsistencies in pandas.DataFrame.pivot_table parameter descriptions (pandas-dev#53351)
1 parent 29f9499 commit 5990c21

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
@@ -8830,22 +8830,22 @@ def pivot(self, *, columns, index=lib.NoDefault, values=lib.NoDefault) -> DataFr
88308830
values : list-like or scalar, optional
88318831
Column or columns to aggregate.
88328832
index : column, Grouper, array, or list of the previous
8833-
If an array is passed, it must be the same length as the data. The
8834-
list can contain any of the other types (except list).
8835-
Keys to group by on the pivot table index. If an array is passed,
8836-
it is being used as the same manner as column values.
8833+
Keys to group by on the pivot table index. If a list is passed,
8834+
it can contain any of the other types (except list). If an array is
8835+
passed, it must be the same length as the data and will be used in
8836+
the same manner as column values.
88378837
columns : column, Grouper, array, or list of the previous
8838-
If an array is passed, it must be the same length as the data. The
8839-
list can contain any of the other types (except list).
8840-
Keys to group by on the pivot table column. If an array is passed,
8841-
it is being used as the same manner as column values.
8838+
Keys to group by on the pivot table column. If a list is passed,
8839+
it can contain any of the other types (except list). If an array is
8840+
passed, it must be the same length as the data and will be used in
8841+
the same manner as column values.
88428842
aggfunc : function, list of functions, dict, default numpy.mean
8843-
If list of functions passed, the resulting pivot table will have
8843+
If a list of functions is passed, the resulting pivot table will have
88448844
hierarchical columns whose top level are the function names
8845-
(inferred from the function objects themselves)
8846-
If dict is passed, the key is column to aggregate and value
8847-
is function or list of functions. If ``margin=True``,
8848-
aggfunc will be used to calculate the partial aggregates.
8845+
(inferred from the function objects themselves).
8846+
If a dict is passed, the key is column to aggregate and the value is
8847+
function or list of functions. If ``margin=True``, aggfunc will be
8848+
used to calculate the partial aggregates.
88498849
fill_value : scalar, default None
88508850
Value to replace missing values with (in the resulting pivot table,
88518851
after aggregation).

0 commit comments

Comments
 (0)