larray.ExcelReport.new_sheet¶
-
ExcelReport.
new_sheet
(self, sheet_name)[source]¶ Add a new empty output sheet. This sheet will contain only graphical elements, all data are exported to a dedicated separate sheet.
- Parameters
- sheet_namestr
name of the current sheet.
- Returns
- sheet: SheetReport
Examples
>>> demo = load_example_data('demography_eurostat') >>> report = ExcelReport(EXAMPLE_EXCEL_TEMPLATES_DIR)
>>> # prepare new output sheet named 'Belgium' >>> sheet_be = report.new_sheet('Belgium')
>>> # add graph to the output sheet 'Belgium' >>> sheet_be.add_graph(demo.pop['Belgium'], 'Population', template='Line')