Bottom Page

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?

Quote
#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

>>>
Quote
#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.
Quote
#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.
Quote
#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?
Quote
#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.
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Pandas data frame creation from Kafka Topic vboppa 0 42 Jul-01-2020, 04:23 PM
Last Post: vboppa
  Generate Test data (.csv) using Pandas Ashley 5 260 Jun-15-2020, 02:51 PM
Last Post: jefsummers
  error bars with dataframe and pandas Hucky 4 359 Apr-27-2020, 02:02 AM
Last Post: Hucky
  Read json array data by pandas vipinct 0 194 Apr-13-2020, 02:24 PM
Last Post: vipinct
  pip install pandas ERROR pythondudu 6 6,437 Mar-26-2020, 07:49 PM
Last Post: snippsat
  add formatted column to pandas data frame alkaline3 0 226 Mar-22-2020, 06:44 PM
Last Post: alkaline3
  pandas error Scott 2 1,229 Feb-05-2020, 07:22 PM
Last Post: Scott
  Key error when using adodbapi, azure and pandas mazamus 2 998 Sep-11-2019, 06:54 AM
Last Post: TomKom
  Loop pandas data frame by position ? Johnse 1 535 Sep-06-2019, 12:26 AM
Last Post: scidam
  pandas data frame dervast 1 444 Aug-28-2019, 12:40 PM
Last Post: ThomasL

Forum Jump:


Users browsing this thread: 1 Guest(s)