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
  Grouping in pandas/multi-index data frame Aleqsie 3 607 Jan-06-2024, 03:55 PM
Last Post: deanhystad
Smile How to further boost the data read write speed using pandas tjk9501 1 1,230 Nov-14-2022, 01:46 PM
Last Post: jefsummers
  pip install pandas ERROR pythondudu 7 32,932 May-24-2022, 06:14 AM
Last Post: Marya_475
Thumbs Up can't access data from URL in pandas/jupyter notebook aaanoushka 1 1,830 Feb-13-2022, 01:19 PM
Last Post: jefsummers
Question Sorting data with pandas TheZaind 4 2,295 Nov-22-2021, 07:33 PM
Last Post: aserian
  Pandas Data frame column condition check based on length of the value aditi06 1 2,655 Jul-28-2021, 11:08 AM
Last Post: jefsummers
  [Pandas] Write data to Excel with dot decimals manonB 1 5,774 May-05-2021, 05:28 PM
Last Post: ibreeden
  pandas.to_datetime: Combine data from 2 columns ju21878436312 1 2,420 Feb-20-2021, 08:25 PM
Last Post: perfringo
  strange error from pandas dataframe djf123 1 4,002 Jul-27-2020, 05:25 AM
Last Post: scidam
  pandas read_csv can't handle missing data mrdominikku 0 2,461 Jul-09-2020, 12:26 PM
Last Post: mrdominikku

Forum Jump:

User Panel Messages

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