@@ -8822,22 +8822,22 @@ def pivot(self, *, columns, index=lib.NoDefault, values=lib.NoDefault) -> DataFr
8822
8822
values : list-like or scalar, optional
8823
8823
Column or columns to aggregate.
8824
8824
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.
8829
8829
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.
8834
8834
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
8836
8836
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.
8841
8841
fill_value : scalar, default None
8842
8842
Value to replace missing values with (in the resulting pivot table,
8843
8843
after aggregation).
0 commit comments