Skip to content
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

ValueError on running the example code #5

Open
cryptCEE opened this issue Sep 20, 2021 · 4 comments
Open

ValueError on running the example code #5

cryptCEE opened this issue Sep 20, 2021 · 4 comments

Comments

@cryptCEE
Copy link

python main.py --t AAPL --i 'quarter' --y 3 --eg .15 --steps 2 --s 0.1 --v eg --apikey <deleted>

Traceback (most recent call last):
File "main.py", line 112, in
main(args)
File "main.py", line 33, in main
cond, dcfs = run_setup(args, variable = 'eg')
File "main.py", line 66, in run_setup
dcfs[step] = historical_DCF(args.t, args.y, args.p, args.d, args.eg, args.cg, args.pg, args.i, args.apikey)
File "/.../DCF/modeling/dcf.py", line 70, in historical_DCF
dcf = DCF(ticker,
File "/.../DCF/modeling/dcf.py", line 20, in DCF
enterprise_val = enterprise_value(income_statement,
File "/.../DCF/modeling/dcf.py", line 152, in enterprise_value
ebit = float(income_statement[0]['EBIT'])
ValueError: could not convert string to float: ''

@yangfengKAUST
Copy link

that's may because of income_statement[0]['EBIT'] is empty from the source data

@halessi
Copy link
Owner

halessi commented Jan 29, 2022

I think it works for me -- still having this issue?

@timojuez
Copy link

I have the same issue.

@timojuez
Copy link

Reason is that the nice people from financialmodelingprep do not provide the most recent EBIT anymore. I am going to make a pull request to your repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants