Finance, Risk Analytics, Data Science, Machine Learning.
pd.DataFrame(data=pd.read_csv("PortfolioData.csv")) df_calculation = pd.DataFrame() df_calculation['PV'] = portfolio_data.iloc[:,1] df_calculation['PC1'] = df_factor_loading.iloc[:,0] df_calculation['Result1'] = df_calculation['PC1'] * df_calculation['PV'] result1 =