-
Notifications
You must be signed in to change notification settings - Fork 130
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
tickers.cash_flow() returning dict not dataframe #219
Comments
I'm not 100% certain, but I think you need Also, you have a lot of tickers in that list. I'd break this up into small chunks to avoid Yahoo's obscure rate limiting logic. If you still get strange results, at least you can localize the tickers that give you trouble. The |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When retrieving data using tickers.cash_flow(), I am getting a dictionary. The docs suggest I should be getting a dataframe.
I scraped a full list of tickers from the nasdaq site for this project. You should be able to reproduce the issue below:
This yields a dictionary. If I try to convert that to a dataframe:
df = pd.DataFrame(annual_cashflow)
Then I get this hot mess:
T ... NABL
0 {'meta': {'symbol': ['T'], 'type': ['annualPur... ... {'meta': {'symbol': ['NABL'], 'type': ['annual...
1 {'meta': {'symbol': ['T'], 'type': ['annualEar... ... {'meta': {'symbol': ['NABL'], 'type': ['annual...
2 {'meta': {'symbol': ['T'], 'type': ['annualPur... ... {'meta': {'symbol': ['NABL'], 'type': ['annual...
3 {'meta': {'symbol': ['T'], 'type': ['annualBeg... ... {'meta': {'symbol': ['NABL'], 'type': ['annual...
4 {'meta': {'symbol': ['T'], 'type': ['annualNet... ... {'meta': {'symbol': ['NABL'], 'type': ['annual...
.. ... ... ...
120 {'meta': {'symbol': ['T'], 'type': ['annualPur... ... {'meta': {'symbol': ['NABL'], 'type': ['annual...
121 {'meta': {'symbol': ['T'], 'type': ['annualDep... ... {'meta': {'symbol': ['NABL'], 'type': ['annual...
122 {'meta': {'symbol': ['T'], 'type': ['annualDiv... ... {'meta': {'symbol': ['NABL'], 'type': ['annual...
123 {'meta': {'symbol': ['T'], 'type': ['annualDiv... ... {'meta': {'symbol': ['NABL'], 'type': ['annual...
124 {'meta': {'symbol': ['T'], 'type': ['annualAmo... ... {'meta': {'symbol': ['NABL'], 'type': ['annual...
Thanks, in advance, for any insight you can provide.
The text was updated successfully, but these errors were encountered: