mirror of
https://github.com/dtomlinson91/street_group_tech_test
synced 2025-12-22 11:55:45 +00:00
adding data exploration report + code
This commit is contained in:
1439
exploration/price_paid_data_report.html
Normal file
1439
exploration/price_paid_data_report.html
Normal file
File diff suppressed because one or more lines are too long
@@ -6,7 +6,27 @@ from pandas_profiling import ProfileReport
|
|||||||
|
|
||||||
def main():
|
def main():
|
||||||
with resources.path("analyse_properties.data", "pp-complete.csv") as csv_file:
|
with resources.path("analyse_properties.data", "pp-complete.csv") as csv_file:
|
||||||
df_report = pd.read_csv(csv_file)
|
df_report = pd.read_csv(
|
||||||
|
csv_file,
|
||||||
|
names=[
|
||||||
|
"transaction_id",
|
||||||
|
"price",
|
||||||
|
"date_of_transfer",
|
||||||
|
"postcode",
|
||||||
|
"property_type",
|
||||||
|
"old_new",
|
||||||
|
"duration",
|
||||||
|
"paon",
|
||||||
|
"saon",
|
||||||
|
"street",
|
||||||
|
"locality",
|
||||||
|
"town_city",
|
||||||
|
"district",
|
||||||
|
"county",
|
||||||
|
"ppd_category",
|
||||||
|
"record_status",
|
||||||
|
],
|
||||||
|
)
|
||||||
profile = ProfileReport(df_report, title="Price Paid Data", minimal=True)
|
profile = ProfileReport(df_report, title="Price Paid Data", minimal=True)
|
||||||
profile.to_file("price_paid_data_report.html")
|
profile.to_file("price_paid_data_report.html")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user