Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

spearman correlation seaborn

# credit to the 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: #spearman #correlation #seaborn
ADD COMMENT
Topic
Name
5+5 =