コード例 #1
0
 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
コード例 #2
0
 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
コード例 #3
0
 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
コード例 #4
0
 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')
コード例 #5
0
    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'
        )
コード例 #6
0
 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'
     )
コード例 #7
0
 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))
コード例 #8
0
 def plot_investment(filepath, save="", show=""):
     # TODO: implement plot_investment method
     if show:
         fig = InvestmentProject.plot(filepath=filepath, show=show)
         if save:
             fig.savefig("")
コード例 #9
0
 def plot_investment(filepath, save="", show=False):
     # TODO: implement plot_investment method
     figure = InvestmentProject.plot(show=show)
     if save:
         figure.to_csv(filepath=filepath)
コード例 #10
0
 def ver(filepath,hurdle_rate=None):
     inv = [InvestmentProject.from_csv(filepath=filepath,hurdle_rate=hurdle_rate)]
     print(inv)
コード例 #11
0
 def plot_investment(filepath, save="", show=False):
     if show:
         inv = InvestmentProject.plot(filepath=filepath, show=show)
         fig = inv.plot()
     if save:
         fig.savefig(".png")
コード例 #12
0
 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)
コード例 #13
0
 def plot_investment(filepath, save="", show=False):
     fig = InvestmentProject.plot(show=show)
     if save:
         fig.to_csv(filepath = filepath)