Python Forum
pandas DataReader error on all data sources
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pandas DataReader error on all data sources
#1
I have previously used the DataReader in pandas with various data sources.

Now Google and Yahoo are more or less deprecated, however I can't get data from any source.

The error I get:

NotImplementedError: data_source='morningstar' is not implemented 
Here it's 'morningstar', but I have tried others, ie. 'fred', 'google','quandl' etc.

Anyone who has problems? According to the pandas documentation this should be up running and even with new sources compatible.


oops mistake, shouldn't have been posted to homework.

Can I delete or move the post, or do we need an admin here?

Reply
#2
Upgrade pandas-datareader.
G:\Anaconda3\Scripts
λ conda install pandas-datareader
....
The following packages will be UPDATED:
    openssl:           1.0.2n-vc14_0 conda-forge [vc14] --> 1.0.2n-h74b6da3_0
    pandas-datareader: 0.5.0-py36_0              --> 0.6.0-py36_0

Downloading and Extracting Packages
pandas-datareader 0.6.0: ############################################################################# | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
G:\Anaconda3
λ python -m ptpython
>>> import pandas_datareader
>>> pandas_datareader.__version__
'0.6.0'

>>> import pandas_datareader.data as web
>>> from datetime import datetime

>>> start = datetime(2018, 1, 1)
>>> end = datetime(2018, 4, 5)
>>> f = web.DataReader('F', 'morningstar', start, end)
>>> f.head()
                   Close   High    Low   Open    Volume
Symbol Date
F      2018-01-01  12.49  12.49  12.49  12.49         0
       2018-01-02  12.66  12.66  12.50  12.52  20773320
       2018-01-03  12.76  12.80  12.67  12.68  29765638
       2018-01-04  12.98  13.04  12.77  12.78  37478200
       2018-01-05  13.20  13.22  13.04  13.06  46121873

>>>
Reply
#3
Thanks a lot! I hadn't thought about checking my version of pandas-datareader and sure enough it was 0.2 or so.

Installing with pip directly didn't upgrade it for me. Though uninstalling and reinstalling worked for me. If anyone else has trouble I just did:

pip uninstall pandas-datareader
pip install pandas-datareader
I have it up running again now.
Reply
#4
(Mar-06-2018, 01:38 PM)glidecode Wrote: Installing with pip directly didn't upgrade it for me
Take a look how conda work it's pandas own package manager,have a tutorial here.
Reply
#5
(Mar-06-2018, 01:01 AM)glidecode Wrote: I have previously used the DataReader in pandas with various data sources. Now Google and Yahoo are more or less deprecated, however I can't get data from any source. The error I get:
NotImplementedError: data_source='morningstar' is not implemented 
Here it's 'morningstar', but I have tried others, ie. 'fred', 'google','quandl' etc. Anyone who has problems? According to the pandas documentation this should be up running and even with new sources compatible.
oops mistake, shouldn't have been posted to homework. Can I delete or move the post, or do we need an admin here?
Reply
#6
From What's New v.0.8.0 (22. September 2019)

Quote:Removal of Google Finance and Morningstar, which were deprecated in 0.7.0
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy

Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  strange error from pandas dataframe djf123 1 759 Jul-27-2020, 05:25 AM
Last Post: scidam
  pandas read_csv can't handle missing data mrdominikku 0 404 Jul-09-2020, 12:26 PM
Last Post: mrdominikku
  Pandas data frame creation from Kafka Topic vboppa 0 252 Jul-01-2020, 04:23 PM
Last Post: vboppa
  Generate Test data (.csv) using Pandas Ashley 5 545 Jun-15-2020, 02:51 PM
Last Post: jefsummers
  error bars with dataframe and pandas Hucky 4 725 Apr-27-2020, 02:02 AM
Last Post: Hucky
  Read json array data by pandas vipinct 0 390 Apr-13-2020, 02:24 PM
Last Post: vipinct
  pip install pandas ERROR pythondudu 6 8,185 Mar-26-2020, 07:49 PM
Last Post: snippsat
  add formatted column to pandas data frame alkaline3 0 397 Mar-22-2020, 06:44 PM
Last Post: alkaline3
  pandas error Scott 2 2,054 Feb-05-2020, 07:22 PM
Last Post: Scott
  Key error when using adodbapi, azure and pandas mazamus 2 1,297 Sep-11-2019, 06:54 AM
Last Post: TomKom

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020