From f73b4fc8fe4bb8ccd13ba23e2ae3781372235d5f Mon Sep 17 00:00:00 2001 From: Connor Murphy Date: Fri, 20 Dec 2024 12:47:54 -0500 Subject: [PATCH] remove empty rows --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index df38625..b0eb684 100644 --- a/main.py +++ b/main.py @@ -219,9 +219,9 @@ def check_cols(filepath,sheet_name=None): if not sheet_name: sheet_name = get_sheet_name(filepath) data = pd.read_excel(f,sheet_name) - data = data.fillna('') # Remove empty rows data.dropna(how='all', inplace=True) + data.fillna('',inplace=True) # Check for empty column headers in pandas dataframe headers = data.columns # logging.debug(f"Headers: {headers}")