fork(1) download
  1. from scipy import stats
  2.  
  3. x = [1,2,5,8,10,12,20,19]
  4. y = [87,100,80,75,80,50,100,97]
  5.  
  6. slope,intercept,r,p,std_err = stats.linregress(x,y)
  7.  
  8. print(r)
Success #stdin #stdout 0.42s 64928KB
stdin
Standard input is empty
stdout
0.10856410662028591