Skip to content

Instantly share code, notes, and snippets.

@SubhadityaMukherjee
Created April 12, 2020 20:20
Show Gist options
  • Save SubhadityaMukherjee/13c7b9bdd0b74a2fce8c60180d8ce27d to your computer and use it in GitHub Desktop.
Save SubhadityaMukherjee/13c7b9bdd0b74a2fce8c60180d8ce27d to your computer and use it in GitHub Desktop.
job
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
)
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment