Skip to content

Commit 9891c6d

Browse files
committed
TST: Fix crosstab margin tests for correct NaN handling with dropna=False (GH#61509)
1 parent e426ac7 commit 9891c6d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pandas/tests/reshape/test_crosstab.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -344,13 +344,13 @@ def test_margin_dropna6(self):
344344
)
345345
expected = DataFrame(
346346
[
347-
[1, 0, 1],
348-
[1, 0, 1],
347+
[1, 0, 1.0],
348+
[1, 0, 1.0],
349349
[0, 0, np.nan],
350-
[2, 0, 2],
351-
[1, 1, 2],
352-
[0, 1, 1],
353-
[5, 2, 7],
350+
[2, 0, 2.0],
351+
[1, 1, 2.0],
352+
[0, 1, 1.0],
353+
[5, 2, 7.0],
354354
],
355355
index=m,
356356
)

0 commit comments

Comments
 (0)