Updates to report functions.

This commit is contained in:
Landon Wark
2024-03-13 10:31:55 -05:00
parent 7cc9dd64c3
commit 2fd8a0b9b6
3 changed files with 21 additions and 4 deletions

View File

@@ -115,7 +115,16 @@ def check_regex_match(pattern:str, check:str) -> bool:
return bool(re.match(fr"{pattern}", check))
except TypeError:
return False
def get_first_blank_df_row(df:pd.DataFrame) -> int:
#First, find NaN entries in first column
# blank_row_bool = df.iloc[:,2].isna()
# logger.debug(f"Blank row bool: {blank_row_bool}")
# #Next, get index of first NaN entry
# blank_row_index = [i for i, x in enumerate(blank_row_bool) if x][0]
# return blank_row_index
return df.shape[0] + 1
# Settings
class Settings(BaseSettings):