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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions