Skip to content

Ignore display.max_rows in DataFrame.to_html(escape=False) #9690

Open
@flying-sheep

Description

@flying-sheep

If escape=False is specified, this dataframe fill fail horribly…

df = DataFrame(data={
    'test': ['<a href="http://reallylongurlthateasilyislongerthan50characters.htm">short linkname</a>'],
})

…as the <td><a href="http://reallylongurlthateasilyislongertha...</td> will be broken HTML, and the a tag is closed by the closing td tag.

i propose that display.max_rows is ignored for cells that contain unescaped HTML tags (i.e. at least one < character)

Related to #8273

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugIO HTMLread_html, to_html, Styler.apply, Styler.applymap

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions