Portfolio-Optimisation

Hi Everyone,

I am working on the Codecadeny Analyse Financial Data - Capstone Project and I am really getting stuck. I have been able to create the efficient frontier, however, I am not sure how to be able to create a function that can then use the data that I have to determine the best portfolio for a risk averse investor versus a risk tolerant investor.

Also, I am not even sure if I am on the right track.

Thanks for the help.