Skip to content

Commit

Permalink
chore: add titles to reports
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrugman committed Jul 5, 2022
1 parent ebbea6a commit 70916f2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions examples/flight_delays.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 6 additions & 1 deletion examples/synthetic_data.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 70916f2

Please sign in to comment.