mirror of
https://github.com/dtomlinson91/street_group_tech_test
synced 2025-12-22 03:55:43 +00:00
updating report.py
This commit is contained in:
@@ -1,13 +1,16 @@
|
|||||||
from importlib import resources
|
import pathlib
|
||||||
|
|
||||||
import pandas as pd
|
import pandas as pd
|
||||||
from pandas_profiling import ProfileReport
|
from pandas_profiling import ProfileReport
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
with resources.path("analyse_properties.data", "pp-complete.csv") as csv_file:
|
input_file = (
|
||||||
|
pathlib.Path(__file__).parents[1] / "data" / "input" / "pp-complete.csv"
|
||||||
|
)
|
||||||
|
with input_file.open() as csv:
|
||||||
df_report = pd.read_csv(
|
df_report = pd.read_csv(
|
||||||
csv_file,
|
csv,
|
||||||
names=[
|
names=[
|
||||||
"transaction_id",
|
"transaction_id",
|
||||||
"price",
|
"price",
|
||||||
|
|||||||
Reference in New Issue
Block a user