Skip to content
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

fix keyerror with single element list passed to Tickers #2068

Merged
merged 1 commit into from
Oct 3, 2024

Conversation

antoniouaa
Copy link
Contributor

Remade this to fix issue #899

From previous PR,

I don't see any good reason to treat single element symbol lists passed to yfinance.Tickers as something special, instead perform the pandas.concat like you would normally (with multiple tickers).

Avoids a KeyError raised here,

self.tickers.get(symbol, {})._history = data[symbol]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants