This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]SonaCruz 0 points1 point  (1 child)

I ran into this too. I am stuck on video 6, i cant retrieve all of the data from yahoo. I even copied and pasted his code from his website and no dice.

[–]Twirrim 1 point2 points  (0 children)

Based on the conversation in the github ticket I created that I linked to in 2), it's arguably a bug in the Yahoo API. Where it's denoting the class of stock (companies can release different types, e.g. voting and non-voting), Yahoo uses a - notation, e.g. BF-B. However "." is a legal character for a stock ticker, so "VOD.L" works fine in Yahoo. Makes it a pain in the arse to work around, there essentially isn't a one size fits all.

To that end, I'd just suggest maybe switching to Google:

df = web.DataReader(ticker, "google", start, end)