Add Glacier name search for table querying
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user