From 92a4a2efca31abc2e43f76681550a2a4376f2b1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=B5=9C=EC=84=A0=EC=97=B4?= Date: Thu, 26 Sep 2024 00:37:03 +0900 Subject: [PATCH] fix: Update describe_numeric_pandas.py * fix np.NaN -> np.nan --- 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"]