From e18bd6d7e05ba4cff36a570cac926b3f470f4526 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Dav=C3=B3?= Date: Mon, 24 Jun 2024 09:25:30 +0000 Subject: [PATCH] Removed deprecated numpy alias MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: David Davó --- recommenders/datasets/pandas_df_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recommenders/datasets/pandas_df_utils.py b/recommenders/datasets/pandas_df_utils.py index 50bd83dd8..f9711ce24 100644 --- a/recommenders/datasets/pandas_df_utils.py +++ b/recommenders/datasets/pandas_df_utils.py @@ -163,7 +163,7 @@ def fit(self, df, col_rating=DEFAULT_RATING_COL): types = df.dtypes if not all( [ - x == object or np.issubdtype(x, np.integer) or x == np.float + x == object or np.issubdtype(x, np.integer) or x == float for x in types ] ):