0

when I import statsmodels.api as sm it gives the error import statsmodels.api as sm
But if I only import statsmodels as sm then it does not give any error

but a few days ago import statsmodels.api as sm was also working
and I also tried pip install statsmodels --force-reinstall --user But it did not fix the problem

And also my python file is not named statsmodels.py or statsmodels.ipynb

1
  • Please include the full traceback error. Commented May 6, 2022 at 5:02

1 Answer 1

1

after I reloaded vs code after running pip install statsmodels --force-reinstall --user it fixed my problem

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.