Calling statistics functions from Scipy

Viewed 29010

This may well be completely trivial.

I want to call the spearmanr function from scipy: (the data are just examples)

import scipy
from numpy import *

Len = [2,3,5,7,2]
Pop = [5,2,6,3,2]

a = array(Len)
b = array(Pop)

print scipy.stats.spearmanr(a,b)

This generates the error:

AttributeError: 'module' object has no attribute 'spearmanr'

What am I doing wrong?

Thanks

1 Answers
Related