Skip to content

Commit dafae75

Browse files
George RobertsonGeorge Robertson
authored andcommitted
Merge branch 'output_checker' of https://github.com/codonlibrary/codonPython into output_checker
2 parents cd6ddb9 + 57f237b commit dafae75

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

codonPython/check_consistent_measures.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ def check_consistent_measures(data, geography_col: str = "Org_Level", measure_co
4545
False
4646
"""
4747

48+
if any(data.isna()):
49+
raise ValueError(
50+
f"Missing values at locations {list(map(tuple, np.argwhere(data.isna().values)))}")
4851
if not isinstance(geography_col, str) or not isinstance(measure_col, str):
4952
raise ValueError("Please input strings for column indexes.")
5053
if not isinstance(measures_set, set):

0 commit comments

Comments
 (0)