title: Plot horizontal bar plot with seaborn
body: <p>I'm crawling a directory and reading a bunch of files and parsing them. All I need is to get the size of the dataframe. I do so by using <code>len(df.index)</code>.</p>
  
  <p>Each directory has 10 files, numbered from 0 to 9. I add all these <code>len(df.index)</code> to a dataframe, where the letters<code>['A', 'B', 'C', 'D']</code> come from a list of categories. These values are added to the dataframe by <code>df2.loc[seed,nd] = len(df.index)</code>. The resulting dataframe is as follows:</p>
  
  <pre><code>         A         B         C       D
  0  10515.0  160592.0  221621.0  198884.0
  1   9777.0  161307.0  222064.0  199841.0
  2  10957.0  159954.0  219553.0  198622.0
  3  12731.0  157862.0  221250.0       NaN
  4  11765.0  162177.0       NaN       NaN
  5   8849.0  155631.0       NaN       NaN
  6  10549.0  160976.0       NaN       NaN
  7   8694.0  158953.0       NaN       NaN
  8  11696.0  160952.0       NaN       NaN
  9  10590.0  161046.0       NaN       NaN
  </code></pre>
  
  <p>In my script, I crawl two directories in a for loop, <code>X</code> and <code>Z</code>, resulting in two dataframes like the one above.</p>
  
  <p>The issue is that I'm trying to plot this dataframe with Seaborn horizontal barplot using</p>
  
  <pre><code>sns.barplot(data=df2)
  </code></pre>
  
  <p>but I don't know how to specify the category, such as shown <a href="https://stackoverflow.com/questions/43562577/horizontal-barplot-in-seaborn-using-dataframe/43564048">here</a>.</p>
  
  <p>How can this be accomplished? Do I need to change my dataframe format?</p>
  
  <p>I'd like to result to be like this (from MS Excel)</p>
  
  <p><a href="https://i.stack.imgur.com/Y38l3.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Y38l3.png" alt="enter image description here"></a></p>