Numpy 财务计算储蓄计划
Numpy financial calculating saving plan
我想存 $1.000.000。我需要每月储蓄多少钱,年利率为 4%,为期 5 年?是否有简单的 numpy 财务函数来计算这个,还是我需要“手动”计算?
numpy 本身的财务功能已被弃用;为此,您可以使用 numpy-financial。
针对您的具体问题:
>>> npf.pmt(0.04/12, 12*5, 0, 1000000, when='end')
-15083.18872193264
我想存 $1.000.000。我需要每月储蓄多少钱,年利率为 4%,为期 5 年?是否有简单的 numpy 财务函数来计算这个,还是我需要“手动”计算?
numpy 本身的财务功能已被弃用;为此,您可以使用 numpy-financial。
针对您的具体问题:
>>> npf.pmt(0.04/12, 12*5, 0, 1000000, when='end')
-15083.18872193264