Improved form regeneration for artic.

This commit is contained in:
Landon Wark
2024-01-04 13:29:18 -06:00
parent c688aa160c
commit 19448cc8f3
18 changed files with 519 additions and 123 deletions

View File

@@ -45,8 +45,10 @@ def check_not_nan(cell_contents) -> bool:
bool: True if cell has value, else, false.
"""
# check for nan as a string first
exclude = ['unnamed:', 'blank', 'void']
try:
if "Unnamed:" in cell_contents or "blank" in cell_contents.lower():
# if "Unnamed:" in cell_contents or "blank" in cell_contents.lower():
if cell_contents.lower() in exclude:
cell_contents = np.nan
cell_contents = cell_contents.lower()
except (TypeError, AttributeError):