Equivalent von R's von cor.test in Python

Gibt es eine Möglichkeit, das Vertrauensintervall in Python zu ermitteln?

n R könnte ich etwas machen wie:

cor.test(m, h)

    Pearson's product-moment correlation

data:  m and h
t = 0.8974, df = 4, p-value = 0.4202
alternative hypothesis: true correlation is not equal to 0
95 percent confidence interval:
 -0.6022868  0.9164582
sample estimates:
      cor 
0.4093729

n Python kann ich r (cor) berechnen mit:

r,p = scipy.stats.pearsonr(df.age, df.pets)

Aber das r Konfidenzintervall wird nicht zurückgegeben.

Antworten auf die Frage(2)

Ihre Antwort auf die Frage