Skip to content

Commit

Permalink
fix: update describe_supported_spark.py included fix for DivideByZero (
Browse files Browse the repository at this point in the history
  • Loading branch information
hb0313 authored and aquemy committed Feb 26, 2024
1 parent bd5782b commit 129bb98
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 129bb98

Please sign in to comment.