@@ -3623,7 +3623,7 @@ def f():
36233623 # these work as they don't really change
36243624 # anything but the index
36253625 # GH5632
3626- expected = DataFrame (columns = ['foo' ], index = pd .Index ([], dtype = int ))
3626+ expected = DataFrame (columns = ['foo' ], index = pd .Index ([], dtype = 'int64' ))
36273627 def f ():
36283628 df = DataFrame ()
36293629 df ['foo' ] = Series ([], dtype = 'object' )
@@ -3640,7 +3640,7 @@ def f():
36403640 return df
36413641 assert_frame_equal (f (), expected )
36423642
3643- expected = DataFrame (columns = ['foo' ], index = pd .Index ([], dtype = int ))
3643+ expected = DataFrame (columns = ['foo' ], index = pd .Index ([], dtype = 'int64' ))
36443644 expected ['foo' ] = expected ['foo' ].astype ('float64' )
36453645 def f ():
36463646 df = DataFrame ()
@@ -3682,7 +3682,7 @@ def f():
36823682
36833683 # GH5720, GH5744
36843684 # don't create rows when empty
3685- expected = DataFrame (columns = ['A' , 'B' , 'New' ], index = pd .Index ([], dtype = int ))
3685+ expected = DataFrame (columns = ['A' , 'B' , 'New' ], index = pd .Index ([], dtype = 'int64' ))
36863686 expected ['A' ] = expected ['A' ].astype ('int64' )
36873687 expected ['B' ] = expected ['B' ].astype ('float64' )
36883688 expected ['New' ] = expected ['New' ].astype ('float64' )
@@ -3703,7 +3703,7 @@ def f():
37033703 df = DataFrame ({"A" : [1 , 2 , 3 ], "B" : [1.2 , 4.2 , 5.2 ]})
37043704 y = df [df .A > 5 ]
37053705 result = y .reindex (columns = ['A' ,'B' ,'C' ])
3706- expected = DataFrame (columns = ['A' ,'B' ,'C' ], index = pd .Index ([], dtype = int ))
3706+ expected = DataFrame (columns = ['A' ,'B' ,'C' ], index = pd .Index ([], dtype = 'int64' ))
37073707 expected ['A' ] = expected ['A' ].astype ('int64' )
37083708 expected ['B' ] = expected ['B' ].astype ('float64' )
37093709 expected ['C' ] = expected ['C' ].astype ('float64' )
@@ -4151,7 +4151,7 @@ def test_floating_index(self):
41514151 assert_series_equal (s .loc [fancy_idx ], expected )
41524152 assert_series_equal (s .ix [fancy_idx ], expected )
41534153
4154- expected = Series ([2 , 0 ], index = Index ([5 , 0 ], dtype = int ))
4154+ expected = Series ([2 , 0 ], index = Index ([5 , 0 ], dtype = 'int64' ))
41554155 for fancy_idx in [[5 , 0 ], np .array ([5 , 0 ])]: #int
41564156 assert_series_equal (s [fancy_idx ], expected )
41574157 assert_series_equal (s .loc [fancy_idx ], expected )
0 commit comments