@@ -3623,7 +3623,7 @@ def f():
3623
3623
# these work as they don't really change
3624
3624
# anything but the index
3625
3625
# GH5632
3626
- expected = DataFrame (columns = ['foo' ], index = pd .Index ([], dtype = int ))
3626
+ expected = DataFrame (columns = ['foo' ], index = pd .Index ([], dtype = 'int64' ))
3627
3627
def f ():
3628
3628
df = DataFrame ()
3629
3629
df ['foo' ] = Series ([], dtype = 'object' )
@@ -3640,7 +3640,7 @@ def f():
3640
3640
return df
3641
3641
assert_frame_equal (f (), expected )
3642
3642
3643
- expected = DataFrame (columns = ['foo' ], index = pd .Index ([], dtype = int ))
3643
+ expected = DataFrame (columns = ['foo' ], index = pd .Index ([], dtype = 'int64' ))
3644
3644
expected ['foo' ] = expected ['foo' ].astype ('float64' )
3645
3645
def f ():
3646
3646
df = DataFrame ()
@@ -3682,7 +3682,7 @@ def f():
3682
3682
3683
3683
# GH5720, GH5744
3684
3684
# 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' ))
3686
3686
expected ['A' ] = expected ['A' ].astype ('int64' )
3687
3687
expected ['B' ] = expected ['B' ].astype ('float64' )
3688
3688
expected ['New' ] = expected ['New' ].astype ('float64' )
@@ -3703,7 +3703,7 @@ def f():
3703
3703
df = DataFrame ({"A" : [1 , 2 , 3 ], "B" : [1.2 , 4.2 , 5.2 ]})
3704
3704
y = df [df .A > 5 ]
3705
3705
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' ))
3707
3707
expected ['A' ] = expected ['A' ].astype ('int64' )
3708
3708
expected ['B' ] = expected ['B' ].astype ('float64' )
3709
3709
expected ['C' ] = expected ['C' ].astype ('float64' )
@@ -4151,7 +4151,7 @@ def test_floating_index(self):
4151
4151
assert_series_equal (s .loc [fancy_idx ], expected )
4152
4152
assert_series_equal (s .ix [fancy_idx ], expected )
4153
4153
4154
- expected = Series ([2 , 0 ], index = Index ([5 , 0 ], dtype = int ))
4154
+ expected = Series ([2 , 0 ], index = Index ([5 , 0 ], dtype = 'int64' ))
4155
4155
for fancy_idx in [[5 , 0 ], np .array ([5 , 0 ])]: #int
4156
4156
assert_series_equal (s [fancy_idx ], expected )
4157
4157
assert_series_equal (s .loc [fancy_idx ], expected )
0 commit comments