From bc6d1abdbe979b128371904e73c0dfe601f635a3 Mon Sep 17 00:00:00 2001 From: Pietro Battiston Date: Mon, 24 Jul 2017 11:01:10 +0200 Subject: [PATCH] Removed now obsolete workaround --- pandas/core/reshape/pivot.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pandas/core/reshape/pivot.py b/pandas/core/reshape/pivot.py index d72867a16ff230..dbf105941c6e58 100644 --- a/pandas/core/reshape/pivot.py +++ b/pandas/core/reshape/pivot.py @@ -526,10 +526,6 @@ def crosstab(index, columns, values=None, rownames=None, colnames=None, margins=margins, margins_name=margins_name, dropna=dropna, **kwargs) - # GH 17013: - if values is None and margins: - table = table.fillna(0).astype(np.int64) - # Post-process if normalize is not False: table = _normalize(table, normalize=normalize, margins=margins,