(self, data, title='report', header=None, widths=None)
return myfile
Make 2D list into a xlsx response for download
        data can be a 2d array or a dict of 2d arrays
        like {'sheet_1': [['A1', 'B1']]}
        returns a StringIO file
Make 2D list into a xlsx response for download
        data can be a 2d array or a dict of 2d arrays
        like {'sheet_1': [['A1', 'B1']]}
        returns a StringIO file
Make 2D list into a xlsx response for download data can be a 2d array or a dict of 2d arrays like { sheet_1 : [[ A1 B1 ]] } returns a StringIO file
def list_to_xlsx_file(self, data, title='report', header=None, widths=None):
        """ Make 2D list into a xlsx response for download
        data can be a 2d array or a dict of 2d arrays
        like {'sheet_1': [['A1', 'B1']]}
        returns a StringIO file
        """
        wb = self.list_to_workbook(data, title, header, widths)
        if not title.endswith('.xlsx'):
            title += '.xlsx'
        myfile = BytesIO()
        myfile.write(save_virtual_workbook(wb))
        return myfile
def list_to_xlsx_file ( self , data , title = 'report' , header = None , widths = None ) : wb = self . list_to_workbook ( data , title , header , widths ) if not title . endswith ( '.xlsx' ) : title += '.xlsx' myfile = BytesIO ( ) myfile . write ( save_virtual_workbook ( wb ) ) return myfile