Adaptations to allow for stand alone scripts.

This commit is contained in:
Landon Wark
2024-03-18 09:47:20 -05:00
parent 2fd8a0b9b6
commit e35081392e
7 changed files with 34 additions and 20 deletions

View File

@@ -117,12 +117,15 @@ def check_regex_match(pattern:str, check:str) -> bool:
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
"""
For some reason I need a whole function for this.
Args:
df (pd.DataFrame): Input dataframe.
Returns:
int: Index of the row after the last used row.
"""
return df.shape[0] + 1
# Settings