Skip to content

Instantly share code, notes, and snippets.

@MLWhiz
Created April 19, 2019 15:36
Show Gist options
  • Save MLWhiz/e0a17bee5218be7e58eaff4df763b4ba to your computer and use it in GitHub Desktop.
Save MLWhiz/e0a17bee5218be7e58eaff4df763b4ba to your computer and use it in GitHub Desktop.
g = sns.boxplot(y = "Club",
x = 'Wage',
data = filtered_player_df, whis=np.inf)
g = sns.swarmplot(y = "Club",
x = 'Wage',
data = filtered_player_df,
# Decrease the size of the points to avoid crowding
size = 7,color = 'black')
# remove the top and right line in graph
sns.despine()
g.figure.set_size_inches(12,8)
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment