Skip to content

Commit 9dd29c6

Browse files
committed
MNT: fix compatibility with beautifulsoup4 4.13.0b2
1 parent 73fd026 commit 9dd29c6

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

pandas/io/html.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -586,12 +586,10 @@ class _BeautifulSoupHtml5LibFrameParser(_HtmlFrameParser):
586586

587587
def __init__(self, *args, **kwargs) -> None:
588588
super().__init__(*args, **kwargs)
589-
from bs4 import SoupStrainer
590589

591-
self._strainer = SoupStrainer("table")
592590

593591
def _parse_tables(self, document, match, attrs):
594-
element_name = self._strainer.name
592+
element_name = "table"
595593
tables = document.find_all(element_name, attrs=attrs)
596594
if not tables:
597595
raise ValueError("No tables found")

requirements-dev.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ psycopg2-binary>=2.9.6
3737
pyarrow>=10.0.1
3838
pymysql>=1.0.2
3939
pyreadstat>=1.2.0
40-
tables>=3.8.0
40+
#tables>=3.8.0
4141
python-calamine>=0.1.7
4242
pyxlsb>=1.0.10
4343
s3fs>=2022.11.0

0 commit comments

Comments
 (0)