From 3c60c97f6a892b88702f8d4b29fc2da2e3d386ee Mon Sep 17 00:00:00 2001 From: Alejandro Rosales Date: Mon, 5 Aug 2024 11:44:01 -0600 Subject: [PATCH] =?UTF-8?q?Impresi=C3=B3n=20de=20historial?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app.py b/app.py index 6d94fad..6a5b936 100644 --- a/app.py +++ b/app.py @@ -110,8 +110,10 @@ def extract(username: str, password: str): # Read the HTML table into a DataFrame df = pd.read_html(historial_html_io)[0] + print(datos_html, historial_html) + if 'GRUPO' not in df.columns: - print(df.to_markdown(), file=sys.stderr) + print(df.to_markdown()) raise KeyError("Column 'GRUPO' not found in the DataFrame") # Convert the DataFrame to JSON