Attribute Error: scipy has no attribute 'Stats'

Asked

Viewed 84 times

1

I am getting this error while trying to import the Pyfolio library, I tried to import first:

import scipy.stats 

or

from scipy import stats 

and I was not successful. I can import scipy but when importing again the Pyfolio library appears the same error.

import scipy.stats import pyfolio as pf

I tried to install scipy again (via Pip), I also tried to update it but it didn’t work. I’m using Python Version 3.6.5, Windows, coding in Spyder. Does anyone know how I can fix this mistake?

  • Arthur, good night! What’s the name of your.py file.?

1 answer

-2

tries to import the function use:

from scipy import stats

if not solved, I found a solution in the gringa thread with same question:

Click here to go

Browser other questions tagged

You are not signed in. Login or sign up in order to post.