Open jeongmincha opened 4 years ago
This issue seems old, but for anyone wondering about it I'm leaving a response.
It seems the example in the README.rst is incorrect. If you look in the balance_sheet.py file, or better yet run help(balance_sheet)
in the REPL or Ipython session, you'll see that the assets and liabilities are read-only properties. All you need to do to continue with the example is fill-in the values for each of the parameters for the assets and liabilities. In my case, I just set everything to 10.00
.
balance_sheet = BalanceSheet(cash=10.00,
short_term_investments=10.00,
net_receivables=10.00,
inventory=10.00,
other_current_assets=10.00,
ppe=10.00,
goodwill=10.00,
intangible_assets=10.00,
other_lt_assets=10.00,
accounts_payable=10.00,
accrued_liabilities=10.00,
short_term_debt=10.00,
current_part_lt_debt=10.00,
other_current_liabilities=10.00,
long_term_debt=10.00,
other_lt_liabilities=10.00,
deferred_lt_liabilities=10.00,
minority_interest=10.00,)
Thanks for leaving this @Crazylegs85! I haven't been great about updating the documentation for this project. I was doing this more as a proof of concept, but it seems that people might actually be interested in using it.
If that is the case, I need to find a better way to allow users to load data. I'm open to any suggestions.
Describe the bug Even the first line of your example in the main README doesn't work.
To Reproduce
Error Message:
Expected behavior This code is expected not to make any error.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information): If specific to your OS, please specify which OS you are using [e.g. Windows, macOS, Ubuntu Linux, etc.]
Additional context Add any other context about the problem here.