title: Formating a frequency dataframe to a table and a histogram
body: <p>If I have a frequency table like below:</p>
  <pre><code>             ret &lt; -1(%)  -1 &lt; ret &lt; -0.5(%)  -0.5 &lt; ret &lt; 0(%)  0 &lt; ret &lt; 0.5(%)  0.5 &lt; ret &lt; 1(%)  ret &gt; 1(%)
  # of event   185.000000           39.000000           54.00000         39.000000         41.000000  188.000000
  % of event    33.882784            7.142857            9.89011          7.142857          7.509158   34.432234
  </code></pre>
  <p>which is generated from the code:</p>
  <pre><code>regions = pd.cut(portretDF['Daily Return'],
                   bins=[-np.inf, -0.01, -0.005, 0, 0.005, 0.01, np.inf],
                   labels=['ret &lt; -1(%)','-1 &lt; ret &lt; -0.5(%)', '-0.5 &lt; ret &lt; 0(%)','0 &lt; ret &lt; 0.5(%)','0.5 &lt; ret &lt; 1(%)','ret &gt; 1(%)'],
                   )
      count = regions.value_counts(sort=False)
      print(count)
      
      size = len(regions)
      percentage = (count/size) * 100
      print(percentage)
      
      results = pd.DataFrame({'# of event': count, '% of event': percentage})
  
      print(results.T.to_string())
  </code></pre>
  <p>where <code>print(count) and print(percentage)</code> are</p>
  <pre><code>ret &lt; -1(%)           185
  -1 &lt; ret &lt; -0.5(%)     39
  -0.5 &lt; ret &lt; 0(%)      54
  0 &lt; ret &lt; 0.5(%)       39
  0.5 &lt; ret &lt; 1(%)       41
  </code></pre>
  <p>and</p>
  <pre><code>ret &lt; -1(%)           33.882784
  -1 &lt; ret &lt; -0.5(%)     7.142857
  -0.5 &lt; ret &lt; 0(%)      9.890110
  0 &lt; ret &lt; 0.5(%)       7.142857
  0.5 &lt; ret &lt; 1(%)       7.509158
  ret &gt; 1(%)            34.432234
  ret &gt; 1(%)            188
  </code></pre>
  <p>respectively.</p>
  <p>May I ask how can I generate a formatted table and histogram with the format like below?
  <a href="https://i.stack.imgur.com/nVqe4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nVqe4.png" alt="enter image description here" /></a></p>