@@ -1088,7 +1088,7 @@ def test_per_axis_per_level_getitem(self):
10881088 columns = MultiIndex .from_tuples ([('a' ,'foo' ),('a' ,'bar' ),('b' ,'foo' ),('b' ,'bah' )],
10891089 names = ['lvl0' , 'lvl1' ])
10901090
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 )
10921092 df = df .sortlevel (axis = 0 ).sortlevel (axis = 1 )
10931093
10941094 # identity
@@ -1164,7 +1164,7 @@ def test_per_axis_per_level_doc_examples(self):
11641164 columns = MultiIndex .from_tuples ([('a' ,'foo' ),('a' ,'bar' ),
11651165 ('b' ,'foo' ),('b' ,'bah' )],
11661166 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 ))),
11681168 index = index ,
11691169 columns = columns )
11701170 result = df .loc [(slice ('A1' ,'A3' ),slice (None ), ['C1' ,'C3' ]),:]
@@ -1203,7 +1203,7 @@ def test_loc_arguments(self):
12031203 columns = MultiIndex .from_tuples ([('a' ,'foo' ),('a' ,'bar' ),
12041204 ('b' ,'foo' ),('b' ,'bah' )],
12051205 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 ))),
12071207 index = index ,
12081208 columns = columns ).sortlevel ().sortlevel (axis = 1 )
12091209
@@ -1252,7 +1252,7 @@ def test_per_axis_per_level_setitem(self):
12521252 columns = MultiIndex .from_tuples ([('a' ,'foo' ),('a' ,'bar' ),('b' ,'foo' ),('b' ,'bah' )],
12531253 names = ['lvl0' , 'lvl1' ])
12541254
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 )
12561256 df_orig = df_orig .sortlevel (axis = 0 ).sortlevel (axis = 1 )
12571257
12581258 # identity
0 commit comments