pandas-datareader

How can I download stock price data with Python?

半腔热情 提交于 2020-01-01 04:59:25
问题 I have installed pandas-daatreader but both the Google and Yahoo APIs for downloading historical stock price data have been deprecated. import pandas_datareader.data as web start_date = '2018-01-01' end_date = '2018-06-08' panel_data = web.DataReader('SPY', 'yahoo', start_date, end_date) ImmediateDeprecationError: Yahoo Daily has been immediately deprecated due to large breaks in the API without the introduction of a stable replacement. Pull Requests to re-enable these data connectors are

No-module named pandas-datareader

亡梦爱人 提交于 2019-12-24 17:37:12
问题 for mac, I have used pip3 install pandas_datareader and the cmd shows it is successful. but when I try to import pandas_datareader in jupyter, it shows me "No module named pandas_datareader" my python version is 3.6 so what's the problem,and how could i do to fix it? thanks all~ 回答1: Here is a global solution. Your case may be solved by python -m pip install <package> (mentioned there, avoid using sudo ... but it's up to you) or directly to install a pip package in the current Jupyter kernel:

NotImplementedError: data_source='iex' is not implemented

余生长醉 提交于 2019-12-13 14:10:54
问题 I am trying to get some stock data through pandas_datareader in jupyter notebook. I was using google, but that does not work anymore, so I am using iex. import pandas_datareader.data as web import datetime start = datetime.datetime(2015,1,1) end = datetime.datetime(2017,1,1) facebook = web.DataReader('FB','iex',start,end) However, it comes back with the following error. NotImplementedError: data_source='iex' is not implemented Can anyone help me how to solve this issue please? 回答1: You need

Insert data to specific column in pages Python, pandas

流过昼夜 提交于 2019-12-12 17:17:36
问题 I already parsed datas from csv. And now trying to insert those data to another file which is "macOS .pages" So the tricky part is, there is more than one page in the file(.pages) and each page has a topic. Of course I parsed the data with the topics(you can see it here). What I am trying to do here, if the parsed data's topic matches the page's topic. Then insert specific data into that page's specific column. For example at the top of the page there is a topic. and inside of the page there

The tickers used in pandas morningstar API

独自空忆成欢 提交于 2019-12-12 17:04:37
问题 Here is what I done for obtaining the price of the stock "TSLA" using the DataReader with morningstar API import pandas_datareader.data as web df = web.DataReader('TSLA', 'morningstar', start, end) However, if I input a wrong ticker for the first parameter of the creator of DataReader, Python just keep running the line. How to check whether a ticker is input correctly for the first parameter? 回答1: When I ran your code with an invalid ticker symbol, I experienced the same problem with the

No module named pandas_datareader

不打扰是莪最后的温柔 提交于 2019-12-12 08:03:50
问题 I have just installed pandas_datareader using pip install pandas-datareader which ran successfully. Now I am trying to use it for a tutorial and I am getting this error when I try to import. import pandas_datareader as pdr ModuleNotFoundError: No module named 'pandas_datareader' This is the link to the tutorial. https://www.datacamp.com/community/tutorials/finance-python-trading#gs.DgsO1BY Any ideas? 回答1: Type into Terminal: pip install pandas_datareader That's it 回答2: In your Anaconda Prompt

Unable to read S&P500 using pandas_datareader on Google Finance

吃可爱长大的小学妹 提交于 2019-12-11 06:15:40
问题 Goal: I'm trying to read historical data from Google Finance for the S&P500 using pandas_datareader. Issue I'm using the symbol on google finance but I keep getting the same error "unable to read url". I pretty sure I'm putting in the wrong symbol but I've tried all the options I know and I don't know what else to do. What symbol can I use with pandas_datareader to pull the historical data for the S&P 500? Any help would be greatly appreciated. Results Results & Errors Code import urllib, sys

Pandas importing FRED data (pandas.io.data or pandas_datareader)

故事扮演 提交于 2019-12-11 02:07:26
问题 Very simple question here which i could not find the answer for reading the docs (below is an excerpt): import pandas_datareader.data as web # pandas 0.19.x and later import datetime start = datetime.datetime(2010, 1, 1) end = datetime.datetime(2013, 1, 27) gdp = web.DataReader("GDP", "fred", start, end) Documentation: http://pandas-datareader.readthedocs.io/en/latest/remote_data.html Note that if you have an older version of pandas you should instead do the following import: import pandas.io

Where and how to get the equity historical data (at least covers 2008)?

混江龙づ霸主 提交于 2019-12-11 01:02:49
问题 I can use the following code to get historical data from Google Finance. But the oldest is from 2016-09-20. This is too short for back testing. I need historical data which covers the year of 2008. import pandas_datareader.data as web start = datetime.datetime(2002, 1, 1) end = datetime.datetime(2017, 1, 27) aapl = DataReader("AAPL", "google", start, end) print(len(aapl)) print(aapl.head()) The outputs are as follow: Open High Low Close Volume Date 2016-09-20 35.02 35.06 33.91 34.44 21192908

module 'pandas_datareader' has no attribute 'get_data_yahoo'

孤街浪徒 提交于 2019-12-10 18:13:18
问题 I'm trying to get stock market history using pandas-datareader as specified in this SO question. I've installed pandas-datareader with: conda install -c https://conda.anaconda.org/anaconda pandas-datareader I'm running on windows 10, with pycharm, and anaconda3 interpreter I'm trying to run the very basic: import pandas_datareader as pdr pdr.get_data_yahoo('AAPL') But I get an error: File "D:/Dropbox/Duo/documents docs/Projects/F500AquisitionQuality/m_and_a_quality/stock_utils.py", line 2, in