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:
import pandas as pd
df = pd.read_csv('pokemon_data.csv')
print(df['name'])
I then get these errors:

Updated: I see that the error is a "key error" however a key named "Name" should exist as it does when I run:
print(df.columns)
with output:
Index(['#,Name,Type 1,Type 2,HP,Attack,Defense,Sp. Atk,Sp. Def,Speed,Generation,Legendary'], dtype='object')
"name"does not exist in this DataFrame. You can useprint(df.columns)to print out which columns do exist.