Änderung: parquet_store.py
This commit is contained in:
16
app/tools/excel_export.py
Normal file
16
app/tools/excel_export.py
Normal file
@@ -0,0 +1,16 @@
|
||||
import pandas as pd
|
||||
import io
|
||||
|
||||
def df_to_excel_bytes(df):
|
||||
|
||||
"""
|
||||
Convert a DataFrame to an in-memory XLSX file.
|
||||
|
||||
Returns a BytesIO object suitable for st.download_button(data=...).
|
||||
"""
|
||||
|
||||
buffer = io.BytesIO()
|
||||
with pd.ExcelWriter(buffer, engine="openpyxl") as writer:
|
||||
df.to_excel(writer, index=False, sheet_name="Daten")
|
||||
buffer.seek(0)
|
||||
return buffer
|
||||
5
app/tools/help_text.py
Normal file
5
app/tools/help_text.py
Normal file
@@ -0,0 +1,5 @@
|
||||
from app_db.app_db import get_value
|
||||
|
||||
def get_help(dashboard :str):
|
||||
helptext = get_value(f"select dash_description from dashboards where dash_name = '{dashboard}.py'")
|
||||
return helptext
|
||||
Reference in New Issue
Block a user