Text of discuss.python.org › t › datareader-problem › 24206 as Styx crawled it on Nov 20, 2026. The page may have changed since. Only its words are kept, without pictures or layout.

Open the live page

DataReader problem - Python Help - Discussions on Python.org

DataReader problem Python Help help serle99 (Fabio ) February 24, 2023, 10:06am 1 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!