This code uses pandas to asses a portfolio. This code calculates cumulative return, average period return, standard deviation of daily return, and sharpe ratio.
This code finds how much of a portfolio's funds should be allocated to each stock in order to optimize performance. This code finds the inputs that maximize the the sharpe ratio function, thus finding the optimal allocations for a portfolio.