Skip to content

Commit

Permalink
fix: Correction for numpy.NaN deprecating to numpy.nan (#1649)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshicola authored Oct 15, 2024
1 parent 938a601 commit 06524cc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand Down

0 comments on commit 06524cc

Please sign in to comment.