mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-08-01 21:34:18 -07:00
Imputing income using geographic neighbors (#1559)
Imputes income field with a light refactor. Needs more refactor and more tests (I spotchecked). Next ticket will check and address but a lot of "narwhal" architecture is here.
This commit is contained in:
parent
485a9a8316
commit
f047ca9d83
16 changed files with 1245 additions and 81 deletions
|
@ -40,7 +40,7 @@ def validate_new_data(
|
|||
assert (
|
||||
checking_df[score_col].nunique() <= 3
|
||||
), f"Error: there are too many values possible in {score_col}"
|
||||
assert (True in checking_df[score_col].unique()) & (
|
||||
assert (True in checking_df[score_col].unique()) | (
|
||||
False in checking_df[score_col].unique()
|
||||
), f"Error: {score_col} should be a boolean"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue