Skip to content

Instantly share code, notes, and snippets.

@Padhma
Created July 9, 2021 21:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Padhma/de22214d6b0f0f3a6643bcdaa6fcd06a to your computer and use it in GitHub Desktop.
Save Padhma/de22214d6b0f0f3a6643bcdaa6fcd06a to your computer and use it in GitHub Desktop.
# create a dataframe using users_with_more_repos list
more_repos_users_df = github_df[github_df['User_Name'].isin(users_with_more_repos)][['Issues','Pull_Requests','Commits','Contributors']]
# set figure size and dpi
fig, ax = plt.subplots(figsize=(6,4), dpi=100)
# plot the correlation in a heatmap
sns.heatmap(more_repos_users_df.corr(), linewidths=0.1, vmax=1.0, square=True, linecolor='white', annot=True, cmap='summer');
fig.suptitle('Correlation of contributions among users with more repositories',fontsize=16, color = '#333F4B');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment