def _render_rows(self):
        """
        Render the rows in the current stylesheet
        """
        _datas = getattr(self, '_datas', ())
        headers = getattr(self, 'headers', ())
        for index, row in enumerate(_datas):
            row_number = index + 2
            for col_num, value in enumerate(row):
                cell = self.worksheet.cell(row=row_number, column=col_num + 1)
                if value is not None:
                    cell.value = value
                else:
                    cell.value = ""
                if len(headers) > col_num:
                    header = headers[col_num]
                    format = get_cell_format(header)
                    if format is not None:
                        cell.number_format = format
def _render_rows ( self ) : _datas = getattr ( self , '_datas' , ( ) ) headers = getattr ( self , 'headers' , ( ) ) for index , row in enumerate ( _datas ) : row_number = index + 2 for col_num , value in enumerate ( row ) : cell = self . worksheet . cell ( row = row_number , column = col_num + 1 ) if value is not None : cell . value = value else : cell . value = "" if len ( headers ) > col_num : header = headers [ col_num ] format = get_cell_format ( header ) if format is not None : cell . number_format = format
Render the rows in the current stylesheet