@@ -24,15 +24,17 @@ def pivot_table(data, values=None, index=None, columns=None, aggfunc='mean',
24
24
----------
25
25
data : DataFrame
26
26
values : column to aggregate, optional
27
- index : a column, Grouper, array which has the same length as data, or list
28
- of them.
27
+ index : column, Grouper, array, or list of the previous
28
+ If an array is passed, it must be the same length as the data. The list
29
+ can contain any of the other types (except list).
29
30
Keys to group by on the pivot table index. If an array is passed, it
30
31
is being used as the same manner as column values.
31
- columns : a column, Grouper, array which has the same length as data, or
32
- list of them.
32
+ columns : column, Grouper, array, or list of the previous
33
+ If an array is passed, it must be the same length as the data. The list
34
+ can contain any of the other types (except list).
33
35
Keys to group by on the pivot table column. If an array is passed, it
34
36
is being used as the same manner as column values.
35
- aggfunc : function, default numpy.mean, or list of functions
37
+ aggfunc : function or list of functions, default numpy.mean
36
38
If list of functions passed, the resulting pivot table will have
37
39
hierarchical columns whose top level are the function names (inferred
38
40
from the function objects themselves)
0 commit comments