title: Getting column values from CSV file
body: <p>I am trying to print a single column name and the corresponding values for that column in Python from a CSV file using pandas. I am able to print the column names, but when I then try to print just one of the columns with the following code:</p>
  <pre><code>import pandas as pd
  
  df = pd.read_csv('pokemon_data.csv')
  
  print(df['name'])
  </code></pre>
  <p>I then get these errors:</p>
  <p><img src="https://i.stack.imgur.com/HqXY2.png" alt="Errors" /></p>
  <p>Updated: I see that the error is a &quot;key error&quot; however a key named &quot;Name&quot; should exist as it does when I run:</p>
  <pre><code>print(df.columns) 
  
  with output:
  
  Index(['#,Name,Type 1,Type 2,HP,Attack,Defense,Sp. Atk,Sp. Def,Speed,Generation,Legendary'], dtype='object')
  </code></pre>