I use pandas to load a csv file and want to print out data of row, here is original data
I want to print out 'violence' data for make a bar chart, but it occuar a keyerror, here is my code
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
c_data=pd.read_csv('crime.csv')
print(c_data.head())
print (c_data['violence'])
and the error
I tried use capital VIOLENCE,print (c_data['VIOLENCE']),but also failed
can someone tell me how to work it out?