Skip to content

DOC: "justify" parameter in to_html #17527

Closed
@gfyoung

Description

@gfyoung

The Travis docs for to_html states that the only accepted parameters for justify are left and right.

However, I stumbled upon the fact that you can also pass in center, and it will work just fine (i.e. the cell elements and headers are centered), as evidenced by the code:

style = "text-align: {just};".format(just=self.fmt.justify)
row.extend([single_column_table(c, self.fmt.justify, style)
for c in self.columns])

@TomAugspurger : Should we continue to allow only left and right or should we expand to accept center ? I'm personally up for the latter but wanted to get consensus first.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugDocsIO 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