title: Applying different formats to different columns dataframe
body: <p>I have the following df: </p>
  
  <pre><code>table:
  
       A             B               C                 D
  0  0.000000       0.000000      -0.002520          -0.002520
  1  0.209772       0.016262       0.003411           0.024343
  2 -0.006474      -0.000152       0.000152           0.000000
  </code></pre>
  
  <p>The real df has about 12 columns and 40 rows.</p>
  
  <p>I would like to change its format:</p>
  
  <p>The problem I am facing is how can I apply a format to some columns and a different format to other columns . Normally I use to apply formats to entire dfs but not to columns individually.</p>
  
  <p>The desired output would be something like this:</p>
  
  <pre><code>table:
  
      A             B            C               D
  0  0.00%       0.000%      -0.000%          -0.00%
  1  0.20%       0.067%       0.001%           0.43%
  2 -0.00%      -0.000%       0.015%           0.00%
  </code></pre>
  
  <p>As you can see in the desired output columns A and D  are rounded to 2 signif figures and B and C are rounded to 3 signif figures and added the % to all of them</p>
  
  <p>this is what I have tried and did not work:</p>
  
  <pre><code> format_AD = "{0:.2f}%".format
   format_BC=  "{0:.3f}%".format
  
   format_changeAD=[table.loc[:,['A','D']]]
   format_changeBC=[table.loc[:,['B','C']]]
  
   format_changeAD.apply(format_AD)
   format_changeBC.apply(format_BC)
  
   return table
  </code></pre>