def plot_investment(filepath, save="", show=False): print('JMR') investment = InvestmentProject.from_csv(filepath=filepath) fig = investment.plot(show=show) if save: fig.savefig("pic.png") return
def plot_investment(filepath, save="", show=False): #raise NotImplementedError print('Fernanda') investment = InvestmentProject.from_csv(filepath=filepath) fig = investment.plot(show=show) if save: fig.savefig("pic.png") return
def plot_investment(filepath, save="", show=False): # TODO: implement plot_investment method #raise NotImplementedError print('Karely Mayorquin') investment = InvestmentProject.from_csv(filepath=filepath) fig = investment.plot(show=show) if save: fig.savefig("pic.png") return
def describe_investment(filepath, hurdle_rate=None): investment_project = InvestmentProject.from_csv(filepath=filepath, hurdle_rate=hurdle_rate) description = investment_project.describe() print(json.dumps(description, indent=4)) print('When the internal rate of return is greater than ') print('the hurdle rate, means that the investment is ') print('profitable, IRR overpasses the minimum return rate ') print('(hurdle rate).') print('') print('The net present value cant be negative, since is a ') print('sum of positive values, these values are positive ') print('because the cashflow is a positive number divided ') print('by another positive number elevates to a positive ') print('time periods')
def describe_investment(filepath, hurdle_rate=None): investment_project = InvestmentProject.from_csv( filepath=filepath, hurdle_rate=hurdle_rate) description = investment_project.describe() print(json.dumps(description, indent=4)) print( 'What does it means when the internal-rate of return is greater than the hurdle rate? ' ) print( 'When the internal-rate of return is greater than the hurdle rate, it means that the investment is profitable ' ) print('Can the net present value be negative? Why? ') print( 'The net present value cant be negative, because is a sum of positive values so these values are positive' )
def describe_investment(filepath, hurdle_rate=None): investment_project = InvestmentProject.from_csv( filepath=filepath, hurdle_rate=hurdle_rate) description = investment_project.describe() print(json.dumps(description, indent=4)) print( 'First, we have to understand this rates, the hurdle rate is the minimum rate that the someone expects to earn when investing' ) print( 'and the IRR, is the interest rate at which the net present value of all cash flows is zero. ' ) print( 'So, when the internal-rate of return is greater of equal than the hurdle rate, the investment is likely to be profit-making ' ) print('') print( 'The net present value cant be negative, since is a sum of positive values,which are positive because the cashflow is a positive number divided by another positive number elevated to a positive time periods' ) print( 'Investments must have a positive net present value, so is worth more today than the costs' )
def describe_investment(filepath, hurdle_rate=None): investment_project = InvestmentProject.from_csv( filepath=filepath, hurdle_rate=hurdle_rate) description = investment_project.describe() print(json.dumps(description, indent=4))
def plot_investment(filepath, save="", show=""): # TODO: implement plot_investment method if show: fig = InvestmentProject.plot(filepath=filepath, show=show) if save: fig.savefig("")
def plot_investment(filepath, save="", show=False): # TODO: implement plot_investment method figure = InvestmentProject.plot(show=show) if save: figure.to_csv(filepath=filepath)
def ver(filepath,hurdle_rate=None): inv = [InvestmentProject.from_csv(filepath=filepath,hurdle_rate=hurdle_rate)] print(inv)
def plot_investment(filepath, save="", show=False): if show: inv = InvestmentProject.plot(filepath=filepath, show=show) fig = inv.plot() if save: fig.savefig(".png")
def plot_investment(filepath, save="", show=False): investment_project = InvestmentProject.from_csv(filepath=filepath) #Inves... es una clase fig = investment_project.plot(show=show) if save: fig.savefig(save)
def plot_investment(filepath, save="", show=False): fig = InvestmentProject.plot(show=show) if save: fig.to_csv(filepath = filepath)