2020-06-14 00:58:52 +02:00
|
|
|
from app.preprocessing import create_dataframe, create_map
|
2020-06-13 20:57:21 +02:00
|
|
|
|
|
|
|
|
2020-06-14 00:58:52 +02:00
|
|
|
def create_table(df) -> str:
|
2020-06-13 20:57:21 +02:00
|
|
|
df.fillna(value=0, inplace=True)
|
2020-06-14 00:58:52 +02:00
|
|
|
table = df.to_html(classes=["table-striped", "table-hover"])
|
|
|
|
return table
|
2020-06-13 20:57:21 +02:00
|
|
|
|
|
|
|
|
|
|
|
def process_data(dataset):
|
|
|
|
df = create_dataframe(dataset)
|
2020-06-14 00:58:52 +02:00
|
|
|
table = create_table(df)
|
2020-06-14 19:07:30 +02:00
|
|
|
create_map(df)
|
|
|
|
return table
|