Reporting Tools
This submodule contains functions used in Excel reporting, particularly by the Results class (see Results).
Functions
|
Removes borders around a Table or Breakdown's column headers. |
|
Writes a Pandas Breakdown to Excel using passed writer. |
|
Writes a DataSet's header to Excel. |
|
Writes a Table to Excel. |
|
Writes a Value to Excel. |
|
Sets all cells in an active openpyxl workbook to a default format. |
- chromaquant.results.reporting_tools.remove_borders(table_or_breakdown: Table | Breakdown, workbook: Workbook)
Removes borders around a Table or Breakdown’s column headers.
Parameters
- table_or_breakdownTable | Breakdown
Table or Breakdown instance.
- workbookWorkbook
Active openpyxl workbook.
Returns
None
- chromaquant.results.reporting_tools.report_breakdown(breakdown: Breakdown, writer: ExcelWriter)
Writes a Pandas Breakdown to Excel using passed writer.
Parameters
- breakdownBreakdown
Pandas Breakdown to export.
- writerExcelWriter
Pandas ExcelWriter used in exporting.
Returns
None
- chromaquant.results.reporting_tools.report_header(dataset: DataSet, workbook: Workbook)
Writes a DataSet’s header to Excel.
Parameters
- datasetDataSet
Dataset to export the header of.
- workbookWorkbook
Active openpyxl workbook.
Returns
None
- chromaquant.results.reporting_tools.report_table(table: Table, writer: ExcelWriter)
Writes a Table to Excel.
Parameters
- table: Table
Table to export.
- writerExcelWriter
Pandas ExcelWriter used in exporting.
Returns
None