Skip to content

Commit 582c86b

Browse files
committed
Details -- thanks, @jreback
1 parent 34f87cb commit 582c86b

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

doc/source/whatsnew/v0.24.0.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Other Enhancements
2424
<https://pandas-gbq.readthedocs.io/en/latest/changelog.html#changelog-0-5-0>`__.
2525
(:issue:`21627`)
2626
- New method :meth:`HDFStore.walk` will recursively walk the group hierarchy of an HDF5 file (:issue:`10932`)
27-
- :func:`read_html` handles colspan and rowspan arguments and attempts to infer a header if the header is not explicitly specified (:issue:`17054`)
27+
- :func:`read_html` copies cell data across ``colspan``s and ``rowspan``s, and it treats all-``th`` table rows as headers if ``header`` kwarg is not given and there is no ``thead`` (:issue:`17054`)
2828
-
2929

3030
.. _whatsnew_0240.api_breaking:

pandas/io/html.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,8 @@ def _parse_thead_tbody_tfoot(self, table_html):
378378
"""
379379
Given a table, return parsed header, body, and foot.
380380
381+
Notes
382+
-----
381383
Header and body are lists-of-lists. Top level list is a list of
382384
rows. Each row is a list of str text.
383385
@@ -700,9 +702,6 @@ def _parse_tables(self, doc, match, kwargs):
700702
def _equals_tag(self, obj, tag):
701703
return obj.tag == tag
702704

703-
def _contains_tag(self, obj, tag):
704-
return obj.find(tag) is not None
705-
706705
def _build_doc(self):
707706
"""
708707
Raises

0 commit comments

Comments
 (0)