I\'m very new to Python and I\'ve unsuccessfully tried to figure out: How to go from a dataframe of transactions to a dataframe of my portfolio with realised and unr