Closed kmdalton closed 3 months ago
This PR enables rs to run on numpy version 2.0 which is also supported by the latest pandas release. The major changes required were
rs
numpy
pandas
np.unique
np.find_common_type
from pandas.core.dtypes.cast import np_find_common_type
np.NaN
np.nan
np.array
np.array(list, copy=False
np.asarray
This PR enables
rs
to run onnumpy
version 2.0 which is also supported by the latestpandas
release. The major changes required werenp.unique
np.find_common_type
was removed in version 2.0, but pandas provides an equivalent method,from pandas.core.dtypes.cast import np_find_common_type
np.NaN
which is now exclusivelynp.nan
np.array
no longer supportsnp.array(list, copy=False
. So I added some control flow which relies onnp.asarray
.