Created
July 9, 2021 20:59
-
-
Save Padhma/bc61e7846d97817d486cd8e9802f57c7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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