Posts by LearningToCode • 1 point
2 posts
-
0
votes1
answer119
viewsA: Populating a dictionary of dictionaries through a for loop
I managed to do otherwise, instead of making a dictionary of other dictionaries popular, I populated it with groupby objects. dic = {} for curso in toledo.curso.unique(): media_curso =…
-
0
votes1
answer119
viewsQ: Populating a dictionary of dictionaries through a for loop
I’m trying to create a loop to add information in a dictionary. The most external key of the dictionary will be the name of a course, and the value will be another dictionary, there will be 6 keys,…