graphPaname/app/processing.py

15 lines
355 B
Python
Raw Normal View History

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)
table = df.to_html(classes=["table-striped", "table-sm", "table-responsive"])
2020-06-14 00:58:52 +02:00
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)
create_map(df)
return table