Skip to content

Commit 8c35fcd

Browse files
authored
CI: cython deprecation warnings (#39551)
1 parent f902b27 commit 8c35fcd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

asv_bench/benchmarks/series_methods.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ def setup(self):
108108
self.vals_short = np.arange(2).astype(object)
109109
self.vals_long = np.arange(10 ** 5).astype(object)
110110
# 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)
113113

114114
def time_isin_nans(self):
115115
# if nan-objects are different objects,

pandas/tests/io/parser/test_parse_dates.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
def test_read_csv_with_custom_date_parser(all_parsers):
3838
# GH36111
3939
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
4242
return pd.to_timedelta(time, unit="s")
4343

4444
testdata = StringIO(

0 commit comments

Comments
 (0)