Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
# 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