From 0f262daf39ddaf32a5803c6e73239be494d79611 Mon Sep 17 00:00:00 2001 From: Daniel Tomlinson Date: Fri, 24 Sep 2021 16:52:34 +0100 Subject: [PATCH] adding report.py --- exploration/report.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 exploration/report.py diff --git a/exploration/report.py b/exploration/report.py new file mode 100644 index 0000000..ff6fac8 --- /dev/null +++ b/exploration/report.py @@ -0,0 +1,15 @@ +from importlib import resources + +import pandas as pd +from pandas_profiling import ProfileReport + + +def main(): + with resources.path("analyse_properties.data", "pp-complete.csv") as csv_file: + df_report = pd.read_csv(csv_file) + profile = ProfileReport(df_report, title="Price Paid Data", minimal=True) + profile.to_file("price_paid_data_report.html") + + +if __name__ == "__main__": + main()