From 6eb8e0ac68db520f23b2e8487617ce4c835aad21 Mon Sep 17 00:00:00 2001 From: Alejandro Rosales Date: Fri, 13 Sep 2024 17:44:59 +0000 Subject: [PATCH] None to json_result --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 2d7234e..b8ab6d3 100644 --- a/app.py +++ b/app.py @@ -157,7 +157,7 @@ def extract(driver, username: str, password: str): historial_html_io = StringIO(f"{historial_html}
") df = pd.read_html(historial_html_io)[0] - json_result = [] + json_result = None if 'GRUPO' in df.columns: df['PERIODO'] = df['PERIODO'].apply(lambda x: str(x).replace('.0', '') if isinstance(x, (float, int)) else x)