-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Google Finance DataReader returns columns with object type instead of float64 #8980
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
so #8792 validated this for Close. Didn't realize that OHL were still having issues. (Its because of a minus sign that I think is messed up). So will mark as a bug. Appreciate a PR to convert all of this data automatically on import. |
I understand that you could be interested by a PR but I have done a totally different approach about DataReader and pandas/io/data.py needs a lot of change. So I don't know if it can be accepted. I wrote a DataReaderBase class. DataReaderGoogleFinanceDaily inherits from DataReaderBase I used a factory pattern using DataReaderFactory class where every DataReaders are "registered" API changed slightly and I'm sure you will not like this it looks like
I can probably work to unify to actual DataReader API. With this kind of idea it's now very easy to use requests (and have cache for queries). About this particular issue I just defined this function
and did
I need to work now on classes DataReaderFamaFrench, DataReaderYahooFinanceOptions, DataReaderWorldBank I'm comparing my code returns to Pandas DataReader returns using unit tests (nosetests) and that's the reason why I'm catching some bugs around DataReader. |
@femtotrader Have you seen #8961 ? |
Thanks for this link to this issue I can send what I have done. I have done a As every DataReader object inherits from DataReaderBase it's quite easy to decide whether we fetch data using |
An other solution to fix this issue is to pass |
The problem is that F has some missing data: 2012-08-01 - - - 9.24 0 I'll submit a PR. |
Hello,
Google Finance DataReader returns columns with object type instead of float64
The text was updated successfully, but these errors were encountered: