Skip to content

Commit 53a297c

Browse files
committed
DOC: Clean up pivot_table docstrings a bit to be more numpydoc-like
1 parent 6d59488 commit 53a297c

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

pandas/tools/pivot.py

+7-5
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,17 @@ def pivot_table(data, values=None, index=None, columns=None, aggfunc='mean',
2424
----------
2525
data : DataFrame
2626
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).
2930
Keys to group by on the pivot table index. If an array is passed, it
3031
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).
3335
Keys to group by on the pivot table column. If an array is passed, it
3436
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
3638
If list of functions passed, the resulting pivot table will have
3739
hierarchical columns whose top level are the function names (inferred
3840
from the function objects themselves)

0 commit comments

Comments
 (0)