title: Seaborn: How to replace index with text in X-Axis in barplot?
body: <p>I have a dataset with <code>category</code> column which has integer values representing class label i.e 0,1,2.....</p>
  
  <p>I have separate file which contains text labels for that category i.e against index 0, it contains <code>classA</code> and so on. I want to plot a barplot using seaborn with following code.</p>
  
  <pre><code>import seaborn as sns
  train_df = pd.read_csv("unclean_text.csv", sep='\t')
  label_text = pd.read_csv("labels.csv")
  is_dup = train_df['category'].value_counts()
  
  plt.figure(figsize=(8,4))
  sns.barplot(is_dup.index, is_dup.values, alpha=0.8, color=color[1])
  plt.show()
  </code></pre>
  
  <p>It correctly plots the barplot for frequency of each class.</p>
  
  <p><a href="https://i.stack.imgur.com/FEOqm.png" rel="noreferrer"><img src="https://i.stack.imgur.com/FEOqm.png" alt="enter image description here"></a></p>
  
  <p>But I want text labels on the x-axis instead of index values that are in <code>label_text</code>, which is also a column vector of length 19 (0-18). How to do it?</p>