Skip to content

Commit e88ff15

Browse files
Add comments closes pandas-dev#37705
1 parent 5781489 commit e88ff15

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

doc/source/whatsnew/v1.2.0.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ I/O
507507
- Bug in :class:`HDFStore` was dropping timezone information when exporting :class:`Series` with ``datetime64[ns, tz]`` dtypes with a fixed HDF5 store (:issue:`20594`)
508508
- :func:`read_csv` was closing user-provided binary file handles when ``engine="c"`` and an ``encoding`` was requested (:issue:`36980`)
509509
- Bug in :meth:`DataFrame.to_hdf` was not dropping missing rows with ``dropna=True`` (:issue:`35719`)
510-
- Bug in :func:`read_html` when parsing ``pathlib.Path`` object as html path (:issue:`37705`)
510+
- Bug in :func:`read_html` caused a ``TypeError`` when parsing ``pathlib.Path`` as html path since it was not converted to string (:issue:`37705`)
511511

512512
Plotting
513513
^^^^^^^^

pandas/tests/io/test_html.py

+5
Original file line numberDiff line numberDiff line change
@@ -1236,6 +1236,11 @@ def run(self):
12361236
assert None is helper_thread1.err is helper_thread2.err
12371237

12381238
def test_parse_Path_object(self):
1239+
"""
1240+
read_html should be able to cope with Path
1241+
1242+
GH 37705
1243+
"""
12391244
file_path_string = r"pandas/tests/io/data/html/spam.html"
12401245
file_path = Path(file_path_string)
12411246
df1 = self.read_html(file_path_string)[0]

0 commit comments

Comments
 (0)