Skip to content

Commit cd6ddb9

Browse files
George RobertsonGeorge Robertson
authored andcommitted
Fixed null checker for tests
1 parent 7449878 commit cd6ddb9

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

codonPython/check_null.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,14 @@ def check_null(dataframe: pd.DataFrame, columns_to_be_checked: list) -> bool:
2929

3030
if not isinstance(columns_to_be_checked, list):
3131
raise ValueError("Please make sure that all your columns passed are strings")
32-
32+
else:
33+
pass
34+
3335
for eachCol in columns_to_be_checked:
3436
if eachCol not in dataframe.columns:
3537
raise KeyError("Please check the column names correspond to values in the DataFrame.")
38+
else:
39+
pass
3640

3741
null_count = 0
3842
for eachColumn in columns_to_be_checked:

0 commit comments

Comments
 (0)