Skip to content

ValueError on running the example code #5

Description

@cryptCEE

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: ''

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions