cols = [
"Law ",
"Math",
"Social Science, Psychologist ",
"Medical Science, Pharmaceuticals, and Bio Tech ",
"Engineering ",
"English/Creative Writing/ Journalism ",
"History/Religion/Philosophy ",
"Business/Econ/Finance ",
"Education, Academia ",
"Biological Sciences/Chemistry/Physics",
"Social Work ",
"Undergrad/undecided ",
"Political Science/International Affairs ",
"Film",
"Fine Arts/Arts Administration",
"Languages",
"Architecture",
"Other",
]
fields = pd.crosstab(index=matched["field_cd"], columns="count").reset_index()
fields
sns.barplot(x=fields["field_cd"], y=fields["count"]).set_xticklabels(
rotation=90, labels=cols
)
;