Python return dictionary from subcategory

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