Datareader still functional?

2108 views python
6

I am having trouble getting the following code to work (it is directly copied from these instructions on how to download data: https://www.learndatasci.com/tutorials/python-finance-part-yahoo-finance-api-pandas-matplotlib/)

from pandas_datareader import data
import matplotlib.pyplot as plt
import pandas as pd

# Define the instruments to download. We would like to see Apple, Microsoft and the S&P500 index.
tickers = ['AAPL', 'MSFT', '^GSPC']

# We would like all available data from 01/01/2000 until 12/31/2016.
start_date = '2010-01-01'
end_date = '2016-12-31'

# User pandas_reader.data.DataReader to load the desired data. As simple as that.
panel_data = data.DataReader('INPX', 'google', start_date, end_date)

This is the output I get:

TypeError: super(type, obj): obj must be an instance or subtype of type

answered question

What line does the error refer to?

1 Answer

13

Errormessage I get when I run your code:

" ImmediateDeprecationError: Google finance 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 welcome. "

posted this

Have an answer?

JD

Please login first before posting an answer.