Skip to content

Instantly share code, notes, and snippets.

Created December 2, 2020 09:05
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
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.barplot(x=list(names), y=list(pct), color='b')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment