Hi everyone guys, today i wanted to try download the data of PG from yahoo finance through pandas, but it gives me some problems
The code that i have used is this one
import pandas as pd
from pandas_datareader import data as wb
PG = wb.DataReader(‘PG’, data_source=‘yahoo’, start=‘2015-1-1’)
And it gives this error message–> TypeError: string indices must be integers
What could be the problem in your opinion? Thanks to everyone who is gonna help me!