Skip to content

Commit

Permalink
fixed z score test
Browse files Browse the repository at this point in the history
  • Loading branch information
bvolodarskiy committed Jun 15, 2023
1 parent 9cc93a2 commit 63d4f23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/data_test/profiling.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def expectations_z_score(name, summary, batch, *args):
std = summary["std"]
maximum = summary["max"]
threshold = (maximum - mean) / std
if isinstance(threshold, float):
if std != 0:
batch.expect_column_value_z_scores_to_be_less_than(
column=name, threshold=threshold, double_sided=True)
return name, summary, batch
Expand Down

0 comments on commit 63d4f23

Please sign in to comment.