title: Reduce the decimals in Pandas Pivot Table
body: <p>I begin with</p>
  <pre><code>pd.set_option('display.float_format', lambda x: '%.0f' % x)
  </code></pre>
  <p>Later I use this function to apply conditional formatting.</p>
  <pre><code>def highlight_Above_TE(cell_value):
      highlight = 'background-color: yellow;'
      default = ''
      if type(cell_value) in [float, int]: 
          if cell_value &gt;= Tolerable_error :
              return highlight
          return default
  </code></pre>
  <p>The problem is that I lose my pd.set option effect of removing decimals.</p>
  <p>The result of</p>
  <pre><code>df.style.applymap(highlight_Above_TE)
  </code></pre>
  <p>Is an ugly output of ###.0000000<br />
  I want to reduce the number of decimals again.<br />
  What do I include in my formatting function to reduce decimals to none.</p>