def iter_rows(self): for row in self._worksheet.iter_rows(): yield [Cell(self._make_cell_value(cell)) for cell in row]
def iter_rows(self): for i, row in enumerate(self._worksheet.iter_rows(), 1): if i > self._max_row: break yield [Cell(self._make_cell_value(cell)) for cell in row]
def iter_rows(): for row in rows: yield [Cell(value) for value in row]
def iter_rows(self): for i in range(self._sheet.nrows): yield [ Cell(self._make_cell_value(cell)) for cell in self._sheet.row(i) ]