From c964f31d9225b505140cd1068a2d41477df0e2fb Mon Sep 17 00:00:00 2001 From: Alejandro Rosales Date: Mon, 5 Aug 2024 11:57:48 -0600 Subject: [PATCH] Regresar print df Regresar print df --- app.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app.py b/app.py index 1965348..76a6971 100644 --- a/app.py +++ b/app.py @@ -110,8 +110,7 @@ def extract(username: str, password: str): # Read the HTML table into a DataFrame df = pd.read_html(historial_html_io)[0] - print(df.head(1)) - + if 'GRUPO' not in df.columns: raise KeyError("Column 'GRUPO' not found in the DataFrame")