Skip to content

Commit 57f237b

Browse files
committed
missing value errors
1 parent 5e485c3 commit 57f237b

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)