From 06524cc0c119d5047247a375b31d89da1a47a03a Mon Sep 17 00:00:00 2001 From: "Joshua Jacobs, Ph.D." Date: Tue, 15 Oct 2024 11:45:06 -0500 Subject: [PATCH] fix: Correction for numpy.NaN deprecating to numpy.nan (#1649) --- src/ydata_profiling/model/pandas/describe_numeric_pandas.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ydata_profiling/model/pandas/describe_numeric_pandas.py b/src/ydata_profiling/model/pandas/describe_numeric_pandas.py index fa3ffd6cf..21eee6c11 100644 --- a/src/ydata_profiling/model/pandas/describe_numeric_pandas.py +++ b/src/ydata_profiling/model/pandas/describe_numeric_pandas.py @@ -138,7 +138,7 @@ def pandas_describe_numeric_1d( } ) stats["iqr"] = stats["75%"] - stats["25%"] - stats["cv"] = stats["std"] / stats["mean"] if stats["mean"] else np.NaN + stats["cv"] = stats["std"] / stats["mean"] if stats["mean"] else np.nan stats["p_zeros"] = stats["n_zeros"] / summary["n"] stats["p_infinite"] = summary["n_infinite"] / summary["n"]