Updates to report functions.
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user