larray.Workbook.close

Workbook.close(self)[source]

Close the workbook in Excel.

Need to be called if the workbook has been opened without the with statement.

Examples

>>> arr, arr2, arr3 = ndtest((3, 3)), ndtest((2, 2)), ndtest(4)   # doctest: +SKIP
>>> wb = open_excel('excel_file.xlsx', overwrite_file=True)       # doctest: +SKIP
>>> wb['arr'] = arr.dump()                                        # doctest: +SKIP
>>> wb['arr2'] = arr2.dump()                                      # doctest: +SKIP
>>> wb['arr3'] = arr3.dump()                                      # doctest: +SKIP
>>> wb.save()                                                     # doctest: +SKIP
>>> wb.close()                                                    # doctest: +SKIP