Skip to content

Right align numbers in HTML repr of tables #12144

Open
@pwaller

Description

@pwaller

Is there a way to right-align numbers in the HTML repr of tables? Right now they are left aligned, and it is a bit of a pain.

I see there is a lot of work on conditional HTML formatting recently (e.g, #10250). Is it already possible to achieve this?

/cc @TomAugspurger

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementIO HTMLread_html, to_html, Styler.apply, Styler.applymapOutput-Formatting__repr__ of pandas objects, to_stringStylerconditional formatting using DataFrame.style

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions