From eb2bd8925a46839701802841a75d8a8e18db7d0f Mon Sep 17 00:00:00 2001 From: Marco Gorelli Date: Fri, 8 Apr 2022 10:25:09 +0100 Subject: [PATCH] fix ci-failure from bs4 new version --- pandas/io/html.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/io/html.py b/pandas/io/html.py index efcbb3c588ce9..3692b07acb85c 100644 --- a/pandas/io/html.py +++ b/pandas/io/html.py @@ -577,7 +577,7 @@ def _parse_tables(self, doc, match, attrs): for elem in table.find_all(style=re.compile(r"display:\s*none")): elem.decompose() - if table not in unique_tables and table.find(text=match) is not None: + if table not in unique_tables and table.find(string=match) is not None: result.append(table) unique_tables.add(table)