diff --git a/src/ghga_transpiler/workbook_parser.py b/src/ghga_transpiler/workbook_parser.py index 9237409..7ab0f36 100644 --- a/src/ghga_transpiler/workbook_parser.py +++ b/src/ghga_transpiler/workbook_parser.py @@ -42,8 +42,8 @@ def _header(self, worksheet: Worksheet): ] def _rows(self, worksheet: Worksheet) -> list: - """Create a list of rows of a worksheet.""" - return list( + """Create a list of non-empty rows of a worksheet.""" + return [ row for row in worksheet.iter_rows( self.config.settings.start_row, @@ -53,7 +53,7 @@ def _rows(self, worksheet: Worksheet) -> list: values_only=True, ) if not all(cell is None for cell in row) - ) + ] def _content(self, worksheet: Worksheet) -> list[dict]: """Compute and return the content of the worksheet, rows as worksheet row values and