Skip to content

Commit 5d254aa

Browse files
committed
fix test
1 parent 70479bd commit 5d254aa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pandas/tests/reshape/test_pivot.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1226,7 +1226,9 @@ def test_crosstab_no_overlap(self):
12261226
s2 = pd.Series([4, 5, 6], index=[4, 5, 6])
12271227

12281228
actual = crosstab(s1, s2)
1229-
expected = pd.DataFrame(index=pd.Index([], dtype='int64'))
1229+
expected = pd.DataFrame(
1230+
columns=['col_0', 'row_0'],
1231+
index=pd.Index([], dtype='int64')).astype('int64')
12301232

12311233
tm.assert_frame_equal(actual, expected)
12321234

0 commit comments

Comments
 (0)