简体   繁体   中英

How can I import pandas_datareader

  • I just downloaded Visual Studio Code, and I´m having troubles with importing the library in the newest version of the software.
  • I hope someone can give me an instruction step by step.
  • NOTE: I'm using python as my coding language
  • The following instructions are for versions of packages current as of this writing.
  • pandas-datareader documentation
  • The module is not part of pandas and must be installed separately
  • Use the directions at Python in Visual Studio Code to properly configure VS Code to work with your python interpreter.

pip

pip install pandas-datareader

conda

# at the anaconda prompt
conda install -c anaconda pandas-datareader

Usage

import pandas_datareader as pdr

Note

  • For older versions of ipython (eg 3.x, which is from before 2015-08), !pip install pandas-datareader may work (mentioned in a comment).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM