In many cases we need to apply different number formatting to different columns. One column might need to use currency format, while the other need to use percent format.
In this case, Pandas has Styler.format feature to do this (ref). We just need to define the formatting function for columns we want to apply on using dictionary where each key represents column name and the value represents formatting function.