I am trying to read last column in Dataframe with column name but its erroring out
Below is my code
f = open('E:\Downloads\Goods&Transit.csv', 'rU')
readfile = csv.reader(f, delimiter = ';')
input_file = [list(line) for line in readfile]
headers = input_file.pop(0)
df = pd.DataFrame(list(input_file), columns= headers)
print df['Receivables']
f.close()
When i print Receivables column - its throwing key error (but dataframe has that column)
print headers:
['PO Number', 'PO Type', 'Location', 'Vendor Number', 'Product ID', 'Planned Delivery Date', 'Receivables
csv file in text format
PO Number;PO Type;Location;Vendor Number;Product ID;Planned Delivery Date;Receivables
7000002174;DP06;1006;0000010055;P26220C00000E10;31.05.2014;205.000-
7000001994;DP06;1006;0000010662;P60514X00000010;06.04.2014;8000.000
7600000238;IM06;1006;0000020257;R87M45X06000020;30.04.2014;4350.000
7600000238;IM06;1006;0000020257;R87M47F06000020;15.04.2014;2700.000
There is single quote for Receivables column
is that causing any issue
Any help will be much appreciated

print()call with a list as its argument.