Skip to content

Yahoo data_source issue - TypeError: string indices must be integers, not 'str' #7

Open
@salomon73

Description

@salomon73

Hi,

I downloaded your package today, and cannot get it to work with the data_source yahoo
in _read_one_data data = j["context"]["dispatcher"]["stores"]["HistoricalPriceStore"] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: string indices must be integers, not 'str'

Here is an option since they apparently hanged the response format panda_datareader.
I then changed data = pdr.DataReader(stock_symbol, data_source, start, end) by data = pdr.yahoo.daily.YahooDailyReader(stock_symbol,start,end) but I then have to change the dataplotter constructor and I don't think this is the way to go.

You might want to look into this too.

Also, if I may suggest, maybe to remove the other datasources if the code does not provide any way to treat them?

Thanks, I will let you know what workaround I find.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions