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
# Sort tuples from high to low on match percentage | |
match_pairs.sort(key=lambda tup: tup[1], reverse=True) | |
# Unpack tuples | |
names, pct = zip(*match_pairs) | |
# Plotting | |
sns.set_theme(style='darkgrid') | |
fig, ax = plt.subplots(figsize=(12,8)) | |
ax.set_title('Job offer match with candidates', fontsize=20) | |
ax.set(xlabel='Candidates', ylabel='% Match') | |
ax.set(ylim=(0, 100)) | |
sns.set(font_scale=1.5) | |
sns.barplot(x=list(names), y=list(pct), color='b') | |
plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment