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