Skip to content

Commit 06524cc

Browse files
authored
fix: Correction for numpy.NaN deprecating to numpy.nan (#1649)
1 parent 938a601 commit 06524cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ydata_profiling/model/pandas/describe_numeric_pandas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def pandas_describe_numeric_1d(
138138
}
139139
)
140140
stats["iqr"] = stats["75%"] - stats["25%"]
141-
stats["cv"] = stats["std"] / stats["mean"] if stats["mean"] else np.NaN
141+
stats["cv"] = stats["std"] / stats["mean"] if stats["mean"] else np.nan
142142
stats["p_zeros"] = stats["n_zeros"] / summary["n"]
143143
stats["p_infinite"] = summary["n_infinite"] / summary["n"]
144144

0 commit comments

Comments
 (0)