Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

I am trying to extract stock data and the first part of importing the programs says this message.

ModuleNotFoundError                       Traceback (most recent call last)
~\AppData\Local\Temp/ipykernel_23208/566689617.py in <module>
----> 1 import pandas_datareader.data as web
      2 import datetime
      3 import pandas as pd
ModuleNotFoundError: No module named 'pandas_datareader'
                Please can you reformat your error message using the code functionality provided by SO?. This error means you're trying to import a libray Python cannot find, in this case pandas_datareader. To read to DataFrames, pandas provides you with functions like read_csv or read_excel and a lot more. So import pandas as pd gives you this ability. By googling, I find that there is a module named pandas_datareader. https://pandas-datareader.readthedocs.io/en/latest/ Did you install it?
– tobihans
                Mar 6, 2022 at 16:16
        

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question. Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.