-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
add calendar for next events #1781
Conversation
add a calendar of upcoming ticker events only dividends and earnings, if available Yahoo does not provide splits in this query
Good but need to be smarter with cal = dat.calendar
if cal is None or cal.shape[1] == 0:
cal = None
if cal is not None:
if cal.shape[1] == 1:
release_dates = [cal["Value"]['Earnings Date']]
else:
release_dates = [cal[i]["Earnings Date"] for i in range(cal.shape[1])] Not saying you have to preserve structure, just is hard to do worse. |
@ValueRaider Where can I see your old code? Because this property was marked as Not Implemented And it's not replacment of data from calendar page |
By old code, I mean code that used to access |
@ValueRaider
output is:
|
A flat |
# Conflicts: # yfinance/scrapers/quote.py
add calendar events return is dict test passed
add calendar events return is dict test passed
|
add calendar events return is dict test passed
add calendar events return is dict test passed
I cann't squash commits. So if everything is ok, i can recreate PR with one clean commit |
The complication was merging in |
Add a calendar of upcoming ticker events
Only dividends and earnings, if available
Yahoo does not provide splits or merges in this query