@@ -1088,7 +1088,7 @@ def test_per_axis_per_level_getitem(self):
1088
1088
columns = MultiIndex .from_tuples ([('a' ,'foo' ),('a' ,'bar' ),('b' ,'foo' ),('b' ,'bah' )],
1089
1089
names = ['lvl0' , 'lvl1' ])
1090
1090
1091
- df = DataFrame (np .arange (16 ).reshape (4 , 4 ), index = index , columns = columns )
1091
+ df = DataFrame (np .arange (16 , dtype = 'int64' ).reshape (4 , 4 ), index = index , columns = columns )
1092
1092
df = df .sortlevel (axis = 0 ).sortlevel (axis = 1 )
1093
1093
1094
1094
# identity
@@ -1164,7 +1164,7 @@ def test_per_axis_per_level_doc_examples(self):
1164
1164
columns = MultiIndex .from_tuples ([('a' ,'foo' ),('a' ,'bar' ),
1165
1165
('b' ,'foo' ),('b' ,'bah' )],
1166
1166
names = ['lvl0' , 'lvl1' ])
1167
- df = DataFrame (np .arange (len (index )* len (columns )).reshape ((len (index ),len (columns ))),
1167
+ df = DataFrame (np .arange (len (index )* len (columns ), dtype = 'int64' ).reshape ((len (index ),len (columns ))),
1168
1168
index = index ,
1169
1169
columns = columns )
1170
1170
result = df .loc [(slice ('A1' ,'A3' ),slice (None ), ['C1' ,'C3' ]),:]
@@ -1203,7 +1203,7 @@ def test_loc_arguments(self):
1203
1203
columns = MultiIndex .from_tuples ([('a' ,'foo' ),('a' ,'bar' ),
1204
1204
('b' ,'foo' ),('b' ,'bah' )],
1205
1205
names = ['lvl0' , 'lvl1' ])
1206
- df = DataFrame (np .arange (len (index )* len (columns )).reshape ((len (index ),len (columns ))),
1206
+ df = DataFrame (np .arange (len (index )* len (columns ), dtype = 'int64' ).reshape ((len (index ),len (columns ))),
1207
1207
index = index ,
1208
1208
columns = columns ).sortlevel ().sortlevel (axis = 1 )
1209
1209
@@ -1252,7 +1252,7 @@ def test_per_axis_per_level_setitem(self):
1252
1252
columns = MultiIndex .from_tuples ([('a' ,'foo' ),('a' ,'bar' ),('b' ,'foo' ),('b' ,'bah' )],
1253
1253
names = ['lvl0' , 'lvl1' ])
1254
1254
1255
- df_orig = DataFrame (np .arange (16 ).reshape (4 , 4 ), index = index , columns = columns )
1255
+ df_orig = DataFrame (np .arange (16 , dtype = 'int64' ).reshape (4 , 4 ), index = index , columns = columns )
1256
1256
df_orig = df_orig .sortlevel (axis = 0 ).sortlevel (axis = 1 )
1257
1257
1258
1258
# identity
0 commit comments