Skip to content

Commit

Permalink
Removed now obsolete workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
toobaz committed Jul 26, 2017
1 parent 956c4f9 commit 2737600
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions pandas/core/reshape/pivot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 2737600

Please sign in to comment.