Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

seaborn heatmap spearman correlation coefficient

# credit to Stack Overflow user in the source link

import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt

A = [...] # insert here your list of values for A
B = [...] # insert here your list of values for B

df = pd.DataFrame({'A': A, 'B': B})
corr = df.corr(method = 'spearman')
sns.heatmap(corr, annot = True)
plt.show()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #seaborn #heatmap #spearman #correlation #coefficient
ADD COMMENT
Topic
Name
2+9 =