Skip to content

Instantly share code, notes, and snippets.

@SubhadityaMukherjee
Created April 12, 2020 20:21
Show Gist options
  • Save SubhadityaMukherjee/a3c8cf3c6cee94ef451b8ddf5c289fee to your computer and use it in GitHub Desktop.
Save SubhadityaMukherjee/a3c8cf3c6cee94ef451b8ddf5c289fee to your computer and use it in GitHub Desktop.
goal

Goal

cols2 = [
    "Seemed like a fun night out",
    "To meet new people",
    "To get a date",
    "Looking for a serious relationship",
    "To say I did it",
    "Other",
]
goal = pd.crosstab(index=matched["goal"], columns="count").reset_index()
goal
sns.barplot(x=goal["goal"], y=goal["count"]).set_xticklabels(
    rotation=90, labels=cols2
)
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment