title: Make Matplotlib Ignore Headings
body: <p>My friend is trying to make a graph using the python import matplotlib and a CSV file I have given her. However, the CSV I've given her includes headings (COUNTRY, COST) so the py program is unable to run properly. The error says &quot;could not convert string to float&quot;. Here is her code an example of my file. How can she make the bar chart ignore the first row of the CSV file so the code is able to run <br><br />
  <a href="https://i.stack.imgur.com/NDqrY.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NDqrY.jpg" alt="Sample of the file, including the headings causing problems" /></a></p>
  <pre><code>import matplotlib.pyplot as plt
  import csv
  
  price = []
  countries = []
      
  with open (&quot;CpremiumusersEurope.csv&quot;,&quot;r&quot;) as csvfile:
      plot = csv.reader(csvfile)
      for row in plot:
          price.append(float(row[1]))
          countries.append(str(row[0]))
  
  plt.style.use('grayscale') 
  plt.bar( countries, price, label='Europe', color='red')
  
  plt.ylabel('Price in Europe ($)')
  plt.title('Cost of spotify premium per country')
  plt.xticks(rotation=90)
  
  plt.legend(loc='best')
  plt.show()
  </code></pre>