Stock Market, Time Series Analysis, Time Series Forecasting, Python, Monte Carlo.
dfprices.columns.values] for i in range(0,len(symbols)): noOfShares.append(portfolioValPerSymbol[i]/priceAtEndDate[i]) noOfShares=[round(element, 5) for element in noOfShares] listOfColumns=dfprices.columns.tolist() dfprices["Adj Close Portfolio"]=dfprices[listOfColumns].mul(noOfShares).sum(1)