-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Fixes ValueError in Cell 21. #3804
Fixes ValueError in Cell 21. #3804
Conversation
Hey @joshuabuildsthings, thanks for this nice detail 🚀 I think this will not work in case the API key is defined for FRED. Reason is because of this line returning a tuple (if API key defined):
IMO, the fix should be something like this instead: fred = openbb.economy.fred(series_ids=["T10Y3M"], start_date="1980-01-01") # this returns a tuple
if fred:
df, df_dict = fred
(... code ...)
else:
fred = None # we can ommit this if we want And then we don't need to touch the final condition. What do you think? PS - I've tried to add those directly myself but got permission denied 😞 |
Also, don't forget to "Clear Output of All Cells" before commit 😄 |
…buildsthings/GamestonkTerminal into fix/economy-report-error-09717374
…buildsthings/GamestonkTerminal into fix/economy-report-error-09717374
@hjoaquim Thank you for the feedback! I made the recommended changes & re-tested & it looks like everything worked as expected. Hopefully I got the Clear Output of All Cells right this time 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than the small comment, is looking alright!
Works perfectly on my end, both with and without FRED API key.
"id": "driven-billion", | ||
"metadata": {}, | ||
"outputs": [], | ||
"outputs": [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be possible to get rid of these?
@hjoaquim - I think I cleared the cells as you requested this time; also brought the feature branch up to date with the 2.1.0 from today. |
@joshuabuildsthings not sure why (prob your fork settings) but can't update your branch 😢 |
@hjoaquim - Sorry about that. Adjusted the settings & merged the recent changes from main back in. |
Description
How has this been tested?
Checklist:
Others