mirror of
https://github.com/dtomlinson91/street_group_tech_test
synced 2025-12-22 03:55:43 +00:00
adding report.py
This commit is contained in:
15
exploration/report.py
Normal file
15
exploration/report.py
Normal file
@@ -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()
|
||||||
Reference in New Issue
Block a user