Key Error while doing frequency table

Hi there, does anybody have an idea about this error?

KeyError: 'Social Networking'

which is caused by the following code. genres is for the list of strings.
genres_ft = {}
for row in genres:
if row in genres:
genres_ft[row] += 1
genres_ft[row] = 1

Hi @yana.mazo

Welcome to our Dataquest Community.

Please take a look at the below post :slightly_smiling_face: .