Skip to content

Instantly share code, notes, and snippets.

@Padhma
Created July 9, 2021 20:59
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/bc61e7846d97817d486cd8e9802f57c7 to your computer and use it in GitHub Desktop.
Save Padhma/bc61e7846d97817d486cd8e9802f57c7 to your computer and use it in GitHub Desktop.
# drop rows with any null values and create a dataframe with only the contribution columns
corr_df = github_df.dropna(axis=0, subset = ['Issues','Pull_Requests','Commits','Contributors'])[['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(corr_df.corr(), linewidths=0.1, vmax=1.0, square=True, linecolor='white', annot=True, cmap='summer');
fig.suptitle('Correlation between the contribution columns',fontsize=16, color = '#333F4B');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment