I have the following Pandas data frame that looks like this:
position price transaction portfolio date