Skip to content

Commit 43db0bd

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

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pandas/tests/reshape/test_crosstab.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -347,10 +347,10 @@ def test_margin_dropna6(self):
347347
[1, 0, 1],
348348
[1, 0, 1],
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)