There is no reason to use Pandas on a simple task like this. You can just read the csv file normally.
with open('chicago.csv', 'r') as fp: for rec in fp: split_rec=rec.strip().split(",") ## you now have a list of columns and can use a ## dictionary to count the 2 combined columns print(split_rec) ## ****** I am not going to do your homework for you *****