Skip to content

Wrap raw HTML in StringIO #726

@genedan

Description

@genedan

pd.read_html() no longer accepts raw HTML input. You'll have to wrap it around StringIO:

https://pandas.pydata.org/docs/dev/whatsnew/v3.0.0.html#other-removals

This leads to the following test failure:

def test_repr(raa):
np.testing.assert_array_equal(
pd.read_html(raa._repr_html_())[0].set_index("Unnamed: 0").values,
raa.to_frame(origin_as_datetime=False).values,
)

In this case, I think it's just part of the test setup, so it can be changed there.

Metadata

Metadata

Assignees

Labels

Effort > Brief 🐇Small tasks expected to take a few hours up to a couple of days.Great First Contribution! 🌱Beginner friendly tickets with narrow scope and huge impact. Perfect to join our community!Impact > Minor 🔷Small, backward compatible change. Treat like a patch release (e.g., 0.5.8 → 0.5.9).

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions