Skip to content

Commit 0352930

Browse files
committed
Fixes #24893: added comment in pivot
1 parent 578c5e0 commit 0352930

File tree

2 files changed

+1
-0
lines changed

2 files changed

+1
-0
lines changed

pandas/core/reshape/pivot.py

+1
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ def _add_margins(
252252

253253
row_names = result.index.names
254254
try:
255+
# check the result column and leave floats
255256
for dtype in set(result.dtypes):
256257
cols = result.select_dtypes([dtype]).columns
257258
margin_dummy[cols] = margin_dummy[cols].apply(

pandas/tests/reshape/merge/test_pivot_old.py

Whitespace-only changes.

0 commit comments

Comments
 (0)