Add Glacier name search for table querying

This commit is contained in:
2020-01-09 20:56:17 +01:00
parent 1aac68473d
commit c6e63cf087
4 changed files with 20 additions and 11 deletions

View File

@@ -1,5 +1,5 @@
from app import db
from pandas import DataFrame, read_sql, wide_to_long
from pandas import DataFrame, read_sql
def create_dataframe(query) -> DataFrame:
@@ -8,7 +8,8 @@ def create_dataframe(query) -> DataFrame:
def render_table(df) -> str:
table = df.to_html(classes=["table-bordered", "table-striped", "table-hover"])
df.fillna(value=0, inplace=True)
table = df.to_html(classes=["table-striped", "table-hover"])
return table