# DataReader problem

**URL:** <https://discuss.python.org/t/datareader-problem/24206>\
**Category:** Python Help\
**Tags:** help\
**Created:** [February 24, 2023, 10:06am UTC](https://discuss.python.org/t/datareader-problem/24206 "2023-02-24T10:06:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![serle99](https://avatars.discourse-cdn.com/v4/letter/s/c57346/32.png) [@serle99](https://discuss.python.org/u/serle99)\
**Post date:** [February 24, 2023, 10:06am UTC](https://discuss.python.org/t/datareader-problem/24206/1 "2023-02-24T10:06:22Z")

</div>

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! 🙂
