When I import the first column it appear but when I index the second column it doesn't appear!, why? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

When I import the first column it appear but when I index the second column it doesn't appear!, why?

Import pandas as pd data = pd.read_csv("location") Print(data['Year')) #it works Print(data['Flood']) #it doesn't work!!

1st Sep 2020, 9:09 PM
Ali Maher Noori Ali
1 Answer
+ 1
Maybe you could link the file because i didn't understand why wouldn't it work unless it doesn't exists
1st Sep 2020, 10:32 PM
Abhay
Abhay - avatar