L'appel de fonctions statistiques de Scipy

C'est peut-être complètement trivial.

Je tiens à appeler l'spearmanr fonction de scipy: (les données sont juste des exemples)

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)

Cela génère l'erreur:

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

Ce que je fais mal?

Grâce

InformationsquelleAutor WillJones | 2011-07-12