File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -108,8 +108,8 @@ def setup(self):
108
108
self .vals_short = np .arange (2 ).astype (object )
109
109
self .vals_long = np .arange (10 ** 5 ).astype (object )
110
110
# because of nans floats are special:
111
- self .s_long_floats = Series (np .arange (10 ** 5 , dtype = np .float )).astype (object )
112
- self .vals_long_floats = np .arange (10 ** 5 , dtype = np .float ).astype (object )
111
+ self .s_long_floats = Series (np .arange (10 ** 5 , dtype = np .float_ )).astype (object )
112
+ self .vals_long_floats = np .arange (10 ** 5 , dtype = np .float_ ).astype (object )
113
113
114
114
def time_isin_nans (self ):
115
115
# if nan-objects are different objects,
Original file line number Diff line number Diff line change 37
37
def test_read_csv_with_custom_date_parser (all_parsers ):
38
38
# GH36111
39
39
def __custom_date_parser (time ):
40
- time = time .astype (np .float )
41
- time = time .astype (np .int ) # convert float seconds to int type
40
+ time = time .astype (np .float_ )
41
+ time = time .astype (np .int_ ) # convert float seconds to int type
42
42
return pd .to_timedelta (time , unit = "s" )
43
43
44
44
testdata = StringIO (
You can’t perform that action at this time.
0 commit comments