From 70916f2ce2057cb6c87e52e2089ef4e003e69326 Mon Sep 17 00:00:00 2001 From: Simon Brugman Date: Mon, 4 Jul 2022 23:38:35 +0200 Subject: [PATCH] chore: add titles to reports --- examples/flight_delays.py | 1 + examples/synthetic_data.py | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/examples/flight_delays.py b/examples/flight_delays.py index ca84fa26..08c85d51 100644 --- a/examples/flight_delays.py +++ b/examples/flight_delays.py @@ -12,6 +12,7 @@ # Configuration of the monitoring rules and report settings = Settings() settings.report.extended_report = False +settings.report.title += " | Flight Delays Dataset" settings.monitoring.pull_rules = {"*_pull": [10, 7, -7, -10]} # generate stability report using automatic binning of all encountered features diff --git a/examples/synthetic_data.py b/examples/synthetic_data.py index 9e006701..abbacde5 100644 --- a/examples/synthetic_data.py +++ b/examples/synthetic_data.py @@ -1,17 +1,22 @@ import pandas as pd import popmon # noqa -from popmon import resources +from popmon import Settings, resources # open synthetic data df = pd.read_csv(resources.data("test.csv.gz"), parse_dates=["date"]) +# report configuration +settings = Settings() +settings.report.title += " | Synthetic Dataset" + # generate stability report using automatic binning of all encountered features # (importing popmon automatically adds this functionality to a dataframe) report = df.pm_stability_report( time_axis="date", time_width="2w", features=["date:age", "date:gender", "date:isActive", "date:eyeColor"], + settings=settings, ) # or save the report to file