Open jponsiglione opened 1 year ago
I'm not 100% certain, but I think you need tickers = Ticker(ticker_string.split())
.
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 cash_flow
attribute does provide a dataframe when I try it with a handful of valid ticker symbols.
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.