title: How to make Pareto Chart in python?
body: <p>Pareto is very popular diagarm in Excel and Tableu. In excel we can easily draw a Pareto diagram but I found no easy way to draw the diagram in Python.</p>
  
  <p>I have a pandas dataframe like this:</p>
  
  <pre><code>import numpy as np
  import pandas as pd
  import seaborn as sns
  import matplotlib.pyplot as plt
  
  df = pd.DataFrame({'country': [177.0, 7.0, 4.0, 2.0, 2.0, 1.0, 1.0, 1.0]})
  df.index = ['USA', 'Canada', 'Russia', 'UK', 'Belgium', 'Mexico', 'Germany', 'Denmark']
  print(df)
  
           country
  USA        177.0
  Canada       7.0
  Russia       4.0
  UK           2.0
  Belgium      2.0
  Mexico       1.0
  Germany      1.0
  Denmark      1.0
  </code></pre>
  
  <p>How to draw the Pareto diagram ?
  Using maybe pandas, seaborn, matplotlib etc?</p>
  
  <p>So far I have been able to make descending order bar chart.
  But its still remaining to put cumulative sum line plot on top of them.</p>
  
  <p>My attempt:
  <code>df.sort_values(by='country',ascending=False).plot.bar()</code></p>
  
  <p><a href="https://i.stack.imgur.com/qV81F.png" rel="noreferrer"><img src="https://i.stack.imgur.com/qV81F.png" alt=""></a></p>
  
  <p>Required plot:
  <a href="https://i.stack.imgur.com/TZ2a3.png" rel="noreferrer"><img src="https://i.stack.imgur.com/TZ2a3.png" alt=""></a></p>