Skip to content

Commit

Permalink
ENH: display_format for style
Browse files Browse the repository at this point in the history
Closes pandas-dev#11692
Closes pandas-dev#12134
Closes pandas-dev#12125

This adds a `.format` method to Styler for formatting the display value
(the actual text) of each scalar value.

In the processes of cleaning up the template, I close pandas-dev#12134 (spurious 0)
and pandas-dev#12125 (KeyError from using iloc improperly)

cherry pick test from pandas-dev#12126

only allow str formatting for now

fix tests for new spec

formatter callable

update notebook
  • Loading branch information
TomAugspurger committed Feb 7, 2016
1 parent 70f79ce commit aee0d90
Show file tree
Hide file tree
Showing 5 changed files with 10,117 additions and 12,207 deletions.
1 change: 1 addition & 0 deletions doc/source/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1809,6 +1809,7 @@ Style Application

Styler.apply
Styler.applymap
Styler.format
Styler.set_precision
Styler.set_table_styles
Styler.set_caption
Expand Down
Loading

0 comments on commit aee0d90

Please sign in to comment.