Skip to content

Make DataFrame.to_html output full content #17004

Closed
@dclong

Description

@dclong

Make DataFrame.to_html output full contents by default. Or at least add option to enable outputting full content.

Code Sample

import pandas as pd
df = pd.DataFrame({
    'id': [1, 2, 3, 4, 5],
    'link': ['http://a_super_loooooooooooooooooooooooooooooooong_link.com', '', '', '', '']
})
df.to_html('df.html')

Problem description

By default, pandas uses a short representation of a very long string. However, when outputting to HTML, I think users expect the full content to be outputted rather than a short representation.

Expected Output

Full content output is expected. Or least there should be an option to enable outputting full content.

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementIO HTMLread_html, to_html, Styler.apply, Styler.applymap

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions