Skip to content

Commit

Permalink
Update describe_supported_spark.py included fix for DivideByZero (#1545)
Browse files Browse the repository at this point in the history
  • Loading branch information
hb0313 authored Feb 26, 2024
1 parent 2cea23a commit f5a0ac3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ def describe_supported_spark(
n_unique = summary["value_counts"].where("count == 1").count()
summary["is_unique"] = n_unique == count
summary["n_unique"] = n_unique
summary["p_unique"] = n_unique / count
summary["p_unique"] = n_unique / count if count > 0 else 0

return config, series, summary

0 comments on commit f5a0ac3

Please sign in to comment.