-
-
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
Income Statement, Balance Sheet and Cashflows are coming up as an empty dataframe #191
Comments
I also have the same problem, when i ask for financials I recibe: |
Hey, I just had the same problem.
The problem is in line 283. Thanks vamshikarthik for the tip. Tim |
Thank you very much, problem just solve |
It did not work for me I'm sorry. This applies for balance_sheet, cashflow, earnings, financials etc.
Any other ideas? Thanks in advance |
I had the same problem, which source was mentioned above. Fixing the problem as stated above resulted in the error quoted by @kalinkirev . I resolved it by: Line 283 (commenting out the url, because the raw url was already defined in line 279) and adding "/holders" to the url+...: and adding "/financials" in Line 354:
Restart the kernel and it should work. |
Thanks, I did this and it fixed my issue |
As described #111 it is working fine at version 0.1.48. |
I tried to apply the fixes you suggested at line 283 and 354 and re-run the base.py code after restarting the kernel but it seems that I cannot use any of the get functions. I am not an expert Python user so I am very likely doing something naive here. Could you kindly provide a step by step guide for the full process or and example of how to use the functions after the lines have been edited? Thanks in advance for your help :) |
accoring to issue 191 of yfinance ranaroussi/yfinance#191
I get: I added to "solve" the problem, i dont know if this will destroy other function but earnings work and are correct (i controlled with some morningstar pdfs).
|
Hi guys, I'm rather new to Python which is why I don't quite get the methodology of your edits. |
Copied from @anbento0490 I am going to explain in depth the method I used to fix it for less advanced git_hub/python users:
pip install git+https://github.com/username/yfinance.git After you do that, the methods that were failing will work as expected! |
fix for Income Statement, Balance Sheet and Cashflows are coming up as an empty dataframe ranaroussi#191
Thank you so much @aniketnaikdesai! For the terminal it worked perfectly. Is there also a solution available for Anaconda (Navigator)? It's not impossible to install it there with |
I don't think you can conda install from github. |
and Cashflows are coming up as an empty dataframe ranaroussi#191
Some symbols work but many symbols still don't work after the fix @aniketnaikdesai. |
I am able to pull the balance sheet information for AB. I have my code patched for many changes. You can also fix your code. The index error is due to missing institutional holders information. |
@aniketnaikdesai Thanks much. It is very helpful! |
and Cashflows are coming up as an empty dataframe ranaroussi#191
I am using version 0.1.54 and still have the issues described above. BUT the fixes described by @mariusgarbowski worked fanstastically!! Thank you! |
ranaroussi#191 To solve empty statement returns
283 & 284 changed according to ranaroussi#191
ERROR: Command errored out with exit status 1: git clone -q https://github.com/martinemilander/yfinance.git /private/var/folders/3c/nkrc6kr94p54njs4j7333wq80000gn/T/pip-req-build-3yued3xj Check the logs for full command output. It then prompts me to install command line tools for developers (something to do with Xcode) but then the installation fails. |
I recently started using this library and ran into the issue described by @karthikbhamidipati. The change I made in base.py was to change line 376 to remove the superflous '/holders' URI component, such that the resultant URL suffixes with //financials, rather than //holders/financials. I can now use .financials, .balance_sheet and .earnings for the Ticker object, for at least the one stock Ticker I've tested with. Attached is the diff for my change.
Hope this helps someone else. Looks like the official release on pypy is dated to Oct 5 - I would imagine these fixes (submitted by others as PRs) would make the next release. |
Income Statement, Balance Sheet and Cashflows are coming up as an empty data frame.
/quote//holders in line 283This is because variable url in base.py is being updated to
and when fetching the financials in line 354 of base.py the url being used is /quote//holders/financials and it should be /quote//financials
The text was updated successfully, but these errors were encountered: