@@ -1274,8 +1274,8 @@ def test_header_multiindex_common_format(self):
1274
1274
tm .assert_frame_equal (df .reset_index (drop = True ),result )
1275
1275
1276
1276
# malformed case 1
1277
- expected = DataFrame (np .array ([[ 2 , 3 , 4 , 5 , 6 ],
1278
- [ 8 , 9 , 10 , 11 , 12 ]]),
1277
+ expected = DataFrame (np .array ([[2 , 3 , 4 , 5 , 6 ],
1278
+ [8 , 9 , 10 , 11 , 12 ]], dtype = 'int64' ),
1279
1279
index = Index ([1 , 7 ]),
1280
1280
columns = MultiIndex (levels = [[u ('a' ), u ('b' ), u ('c' )], [u ('r' ), u ('s' ), u ('t' ), u ('u' ), u ('v' )]],
1281
1281
labels = [[0 , 0 , 1 , 2 , 2 ], [0 , 1 , 2 , 3 , 4 ]],
@@ -1290,8 +1290,8 @@ def test_header_multiindex_common_format(self):
1290
1290
tm .assert_frame_equal (expected ,result )
1291
1291
1292
1292
# malformed case 2
1293
- expected = DataFrame (np .array ([[ 2 , 3 , 4 , 5 , 6 ],
1294
- [ 8 , 9 , 10 , 11 , 12 ]]),
1293
+ expected = DataFrame (np .array ([[2 , 3 , 4 , 5 , 6 ],
1294
+ [8 , 9 , 10 , 11 , 12 ]], dtype = 'int64' ),
1295
1295
index = Index ([1 , 7 ]),
1296
1296
columns = MultiIndex (levels = [[u ('a' ), u ('b' ), u ('c' )], [u ('r' ), u ('s' ), u ('t' ), u ('u' ), u ('v' )]],
1297
1297
labels = [[0 , 0 , 1 , 2 , 2 ], [0 , 1 , 2 , 3 , 4 ]],
@@ -1307,7 +1307,7 @@ def test_header_multiindex_common_format(self):
1307
1307
1308
1308
# mi on columns and index (malformed)
1309
1309
expected = DataFrame (np .array ([[ 3 , 4 , 5 , 6 ],
1310
- [ 9 , 10 , 11 , 12 ]]),
1310
+ [ 9 , 10 , 11 , 12 ]], dtype = 'int64' ),
1311
1311
index = MultiIndex (levels = [[1 , 7 ], [2 , 8 ]],
1312
1312
labels = [[0 , 1 ], [0 , 1 ]]),
1313
1313
columns = MultiIndex (levels = [[u ('a' ), u ('b' ), u ('c' )], [u ('s' ), u ('t' ), u ('u' ), u ('v' )]],
0 commit comments