We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 73fd026 commit e3f9298Copy full SHA for e3f9298
pandas/io/html.py
@@ -584,14 +584,8 @@ class _BeautifulSoupHtml5LibFrameParser(_HtmlFrameParser):
584
:class:`pandas.io.html._HtmlFrameParser`.
585
"""
586
587
- def __init__(self, *args, **kwargs) -> None:
588
- super().__init__(*args, **kwargs)
589
- from bs4 import SoupStrainer
590
-
591
- self._strainer = SoupStrainer("table")
592
593
def _parse_tables(self, document, match, attrs):
594
- element_name = self._strainer.name
+ element_name = "table"
595
tables = document.find_all(element_name, attrs=attrs)
596
if not tables:
597
raise ValueError("No tables found")
0 commit comments