From eb6ebdda0dd4fa1280d467e82eda568f7079845a Mon Sep 17 00:00:00 2001 From: Marco Edward Gorelli Date: Fri, 8 Apr 2022 12:57:27 +0100 Subject: [PATCH] Backport PR #46692: CI 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 05d7c2998ef27..cebedd18664e4 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)