Skip to content

Commit 7023284

Browse files
committed
Details -- thanks, @jreback
1 parent 7261659 commit 7023284

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
@@ -18,7 +18,7 @@ Other Enhancements
1818
- :func:`Series.mode` and :func:`DataFrame.mode` now support the ``dropna`` parameter which can be used to specify whether NaN/NaT values should be considered (:issue:`17534`)
1919
- :func:`to_csv` now supports ``compression`` keyword when a file handle is passed. (:issue:`21227`)
2020
- :meth:`Index.droplevel` is now implemented also for flat indexes, for compatibility with :class:`MultiIndex` (:issue:`21115`)
21-
- :func:`read_html` handles colspan and rowspan arguments and attempts to infer a header if the header is not explicitly specified (:issue:`17054`)
21+
- :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`)
2222

2323

2424
.. _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)