@@ -8830,22 +8830,22 @@ def pivot(self, *, columns, index=lib.NoDefault, values=lib.NoDefault) -> DataFr
8830
8830
values : list-like or scalar, optional
8831
8831
Column or columns to aggregate.
8832
8832
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.
8837
8837
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.
8842
8842
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
8844
8844
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.
8849
8849
fill_value : scalar, default None
8850
8850
Value to replace missing values with (in the resulting pivot table,
8851
8851
after aggregation).
0 commit comments