Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
~370 People Reached
Favorite Forums
Favorite Tags
Member Avatar for timjohns

Hello, I'm a newby to Python and I want to write a function which imports a CSV file and returns a dictionary for each subcategory of a column: other: 6, teacher: 3, services: 2, health: 1 Any advice? Thanks! ![Schermafbeelding_2021-01-07_om_22_21_47.png](https://static.daniweb.com/attachments/4/0ea446ffd447c73b0031dfd0fdddbfe8.png)

Member Avatar for rproffitt
0
30
Member Avatar for timjohns

Hello, I'm a newby to Python and I want to write a function which imports a CSV file and returns a dictionary for the index of each subcategory in a column like this: hockey: 3, Tennis: 54, volleyball: 59. Any advise on how to adjust my code? Thanks! import csv …

Member Avatar for Dani
1
340