Last active
January 7, 2023 21:48
-
-
Save chrisroat/a1cb1ff6ff8a1074eac3dc38a6fa14ff to your computer and use it in GitHub Desktop.
test43
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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