@@ -4977,7 +4977,7 @@ def test_reindex_corner(self):
4977
4977
4978
4978
def test_reindex_pad (self ):
4979
4979
4980
- s = Series (np .arange (10 ))
4980
+ s = Series (np .arange (10 ), dtype = 'int64' )
4981
4981
s2 = s [::2 ]
4982
4982
4983
4983
reindexed = s2 .reindex (s .index , method = 'pad' )
@@ -5121,13 +5121,13 @@ def test_rename(self):
5121
5121
assert_series_equal (renamed , renamed2 )
5122
5122
5123
5123
# partial dict
5124
- s = Series (np .arange (4 ), index = ['a' , 'b' , 'c' , 'd' ])
5124
+ s = Series (np .arange (4 ), index = ['a' , 'b' , 'c' , 'd' ], dtype = 'int64' )
5125
5125
renamed = s .rename ({'b' : 'foo' , 'd' : 'bar' })
5126
5126
self .assert_numpy_array_equal (renamed .index , ['a' , 'foo' , 'c' , 'bar' ])
5127
5127
5128
5128
# index with name
5129
5129
renamer = Series (
5130
- np .arange (4 ), index = Index (['a' , 'b' , 'c' , 'd' ], name = 'name' ))
5130
+ np .arange (4 ), index = Index (['a' , 'b' , 'c' , 'd' ], name = 'name' ), dtype = 'int64' )
5131
5131
renamed = renamer .rename ({})
5132
5132
self .assertEqual (renamed .index .name , renamer .index .name )
5133
5133
0 commit comments