-
-
Notifications
You must be signed in to change notification settings - Fork 18.9k
Closed
Labels
BugDocsIO HTMLread_html, to_html, Styler.apply, Styler.applymapread_html, to_html, Styler.apply, Styler.applymap
Milestone
Description
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:
pandas/pandas/io/formats/format.py
Lines 1215 to 1217 in fa557f7
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
Labels
BugDocsIO HTMLread_html, to_html, Styler.apply, Styler.applymapread_html, to_html, Styler.apply, Styler.applymap