From 3af0605449d9a3d48486436341926e611bd540b3 Mon Sep 17 00:00:00 2001 From: coolneng Date: Mon, 15 Jun 2020 02:05:13 +0200 Subject: [PATCH] Document processing module --- app/processing.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/processing.py b/app/processing.py index 088c2e1..ac4fd81 100644 --- a/app/processing.py +++ b/app/processing.py @@ -2,12 +2,18 @@ from app.preprocessing import create_dataframe, create_map def create_table(df) -> str: + """ + Renders an HTML table from a DataFrame + """ df.fillna(value=0, inplace=True) table = df.to_html(classes=["table-striped", "table-sm", "table-responsive"]) return table def process_data(dataset): + """ + Creates the DataFrame, produces a map and returns a table + """ df = create_dataframe(dataset) table = create_table(df) create_map(df)