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 download() DatetimeIndex on invalid symbols #1779

Merged
merged 1 commit into from
Dec 12, 2023

Conversation

VishnuAkundi
Copy link

This is to address Issue #1743

This PR has a simple one line fix where I convert the time column from an Index.base type to a datetime object in the download function (in multi.py).

This error was occurring due to the pd.concat function and how it handles empty dataframes.

I also added a unit test for this based off of the issue.

@ValueRaider ValueRaider merged commit 53c2948 into ranaroussi:main Dec 12, 2023
@ValueRaider ValueRaider changed the title Fix for Key Error Issue on Date column when one of the symbols is no longer valid (delisted/not available) Fix download() DatetimeIndex on invalid symbols Jan 6, 2024
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.

None yet

2 participants