📅  最后修改于: 2022-03-11 14:46:30.186000             🧑  作者: Mango
irr1 = np.irr(project1_cf["cf"])
irr2 = np.irr(project2_cf["cf"])
irr_df = pd.DataFrame({"Name":["Project1", "Project2"],
"IRR":[irr1, irr2]})
print(irr_df)