Actualizar para imprimir el dataframe

Actualizar dataframe
This commit is contained in:
2024-08-05 11:26:58 -06:00
parent 59b92549dc
commit c2f1f5d794

1
app.py
View File

@@ -111,6 +111,7 @@ def extract(username: str, password: str):
df = pd.read_html(historial_html_io)[0] df = pd.read_html(historial_html_io)[0]
if 'GRUPO' not in df.columns: if 'GRUPO' not in df.columns:
print(df.to_markdown(), file=sys.stderr)
raise KeyError("Column 'GRUPO' not found in the DataFrame") raise KeyError("Column 'GRUPO' not found in the DataFrame")
# Convert the DataFrame to JSON # Convert the DataFrame to JSON