Skip to content

Commit bf0fdeb

Browse files
author
Nicholas Ver Halen
committed
Added description to code change.
1 parent adf8616 commit bf0fdeb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tools/pivot.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def pivot_table(data, values=None, index=None, columns=None, aggfunc='mean',
175175
if len(index) == 0 and len(columns) > 0:
176176
table = table.T
177177

178-
# GH 15193
178+
# GH 15193 Makse sure empty columns are removed if dropna=True
179179
if isinstance(table, DataFrame) and dropna:
180180
table = table.dropna(how='all', axis=1)
181181

0 commit comments

Comments
 (0)