title: Python TypeError: xlabel() missing 1 required positional argument: 's'
body: <pre><code>import os, pandas as pd
  from matplotlib import pyplot
  import matplotlib.pyplot as plt
  #Change this to match your directory where the file is stored
  os.chdir(r'Z:\\My Documents') 
  #Read the CSV into Python, setting the first column as the index and    the     first row as the column names
  series = pd.read_csv('Energy.csv', header=0,index_col = 0)
  series = series.transpose() 
  x = series.columns
  print(series.head())
  
  name = series.index.values
  plt.figure(figsize = (11.69,8.27))
  
  for i,values in enumerate(series.values):
      plt.bar(x,values, label = name[i])
      plt.xlabel(label = "VOC", loc = 'best')
      plt.ylabel(label = "VOC", loc = 'best')
  plt.legend(loc = 'best')
  </code></pre>
  
  <p>Hello all</p>
  
  <p>I am trying to run the above code and it keeps saying:</p>
  
  <pre><code>TypeError: xlabel() missing 1 required positional argument: 's'
  </code></pre>
  
  <p>I have moved the positional argument and it still throwing up errors.</p>
  
  <p>Any ideas?</p>