Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update HTML reports using Github Actions (#63)
* Github Actions for building examples as artifacts
- Loading branch information
Showing
6 changed files
with
222 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import pandas as pd | ||
|
||
import popmon | ||
from popmon import resources | ||
|
||
# open synthetic data | ||
df = pd.read_csv( | ||
resources.data("flight_delays.csv.gz"), index_col=0, parse_dates=["DATE"] | ||
) | ||
|
||
# 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="1w", | ||
time_offset="2015-07-02", | ||
extended_report=False, | ||
pull_rules={"*_pull": [10, 7, -7, -10]}, | ||
) | ||
|
||
# or save the report to file | ||
report.to_file("flight_delays_report.html") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import pandas as pd | ||
|
||
import popmon | ||
from popmon import resources | ||
|
||
# open synthetic data | ||
df = pd.read_csv(resources.data("test.csv.gz"), parse_dates=["date"]) | ||
|
||
# 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", features=["date:age", "date:gender"]) | ||
|
||
# or save the report to file | ||
report.to_file("test_data_report.html") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.