I am new to Python.I have created a small dictionary with the name Features.It has three keys in it.
print features.keys()
['Amy', 'LadyJesusFan777', 'rach']
I have written a small code below where get_count function returns a dictionary .I want three different dictionary with the name 'Amy' , 'LadyJesusFan777' , 'rach' mapped to the dictionary returned by the get_count function.But unfortunately my below code is returning only one dictionary with the name key.
for key in features.keys():
key = get_count(features[key])
Code for get_count function.
def get_count(doc):
pair1 = collections.Counter(doc)
print pair1.keys()
print pair1.values()
return pair1
Please help me out.?