can not run statsmodel in notebook


im new to python anywhere , I can't run import statsmodels

i have tried to do this pip3.6 install --user statsmodels

but i still get errors when i run statsmodels as below Any help would be appreciated.

ImportError Traceback (most recent call last) <ipython-input-48-d2f6befd03b9> in <module>() ----> 1 import statsmodels.api as sm 2 import statsmodels.formula.api as smf

ImportError: No module named 'statsmodels'

actually i got it resolved !

Great! What turned out to be the solution?

i just had to change the kernal to the correct one in which i installed the stats model in . a newbie error!

Cool. Glad you worked it out.