I'm getting an error in my code saying 'int' is not iterable for my line that says if complaintDict['Company'] in numComplaintsDict:
numComplaintsDict[company] = numComplaintsDict[company] + 1
What is wrong?
numCompaintsDict[company] is string type not integer, if you want to count up the complaints, I think you should access the value of a key which is the company.