-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Dataframe with incorrect index type returned when combining two tickers (one without data) #1382
Comments
What happens with other dates? |
@asafravid Not helpful. This appears to be a simple problem for someone to debug & fix, clue is one ticker doesn't return data so maybe messing up merge. |
I’ll check |
I had a look at this myself. Pandas concat now combines the empty dataframe and then fails to convert the timezone. I altered a try catch block in multi.py at line 155 to remove the empty dataframe and then everything seemed to work fine:
|
Can you create a PR? |
Is this best solution? My concern is users might think |
It's not delisted, it's just there as there is no data due to the lunar new year.
The problem is the returned dataframe index is not a datetime index, but has type object)
yfinace version 0.2.9, python 3.10.8 on Linux ubuntu
The text was updated successfully, but these errors were encountered: