Skip to content

Commit f7cd79f

Browse files
committed
BUG: df.pivot_table: margins_name is ignored when there aggfunc is list pandas-dev#13354
1 parent 103f7d3 commit f7cd79f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/tools/pivot.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ def pivot_table(data, values=None, index=None, columns=None, aggfunc='mean',
8686
table = pivot_table(data, values=values, index=index,
8787
columns=columns,
8888
fill_value=fill_value, aggfunc=func,
89-
margins=margins)
89+
margins=margins,
90+
dropna=dropna, margins_name=margins_name)
9091
pieces.append(table)
9192
keys.append(func.__name__)
9293
return concat(pieces, keys=keys, axis=1)

0 commit comments

Comments
 (0)