idmd.report.report.ReportGenerator

class idmd.report.report.ReportGenerator[source]

Bases: object

Handles the logic for generating PDF reports.

Methods

create_pdf_report

Create a polished PDF report containing: - DataFrame preview - DataFrame statistics (rounded) - Line plot + correlation heatmap - Histograms in a compact grid

static create_pdf_report(df, plot_cols=None, heatmap_cols=None, hist_cols=None)[source]

Create a polished PDF report containing: - DataFrame preview - DataFrame statistics (rounded) - Line plot + correlation heatmap - Histograms in a compact grid

Return type:

BytesIO

Args:

df (pd.DataFrame): The DataFrame to include in the report. plot_cols (list, optional): Columns to include in the line plot. Defaults to None. heatmap_cols (list, optional): Columns to include in the heatmap. Defaults to None. hist_cols (list, optional): Columns to include in the histograms. Defaults to None.

Returns:

io.BytesIO: A buffer containing the generated PDF report.