Skip to content

Instantly share code, notes, and snippets.

@chrisroat
Last active January 7, 2023 21:48
Show Gist options
  • Save chrisroat/a1cb1ff6ff8a1074eac3dc38a6fa14ff to your computer and use it in GitHub Desktop.
Save chrisroat/a1cb1ff6ff8a1074eac3dc38a6fa14ff to your computer and use it in GitHub Desktop.
test43
data_hist = df_contest.index.get_level_values("candidate").remove_unused_categories()
data_hist = data_hist.reorder_categories(new_categories=names)
g = sns.histplot(data_hist)
plt.xticks(rotation=90)
g.set_xlabel("")
_ = g.set_ylabel("Votes")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment