Skip to content

Instantly share code, notes, and snippets.

@dennisdv1
Created Dec 2, 2020
Embed
What would you like to do?
# 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