Back to Community
Pyfolio Transactions DataFrame

I am trying to get pyfolio running locally. What I wanted to ask is that transactions analysis requires a transaction data frame of the following form as mentioned in the reference-

---------------------------------------------------  
               index | amount |   price |  symbol |  
---------------------------------------------------  
 2004-01-09 12:18:01 |    483 |  324.12 |  'AAPL' |  
---------------------------------------------------  
 2004-01-09 12:18:01 |    122 |   83.10 |  'MSFT' |  
---------------------------------------------------  
 2004-01-13 14:12:23 |    -75 |  340.43 |  'AAPL' |  
---------------------------------------------------  

So, should the dataframe only include the long and short transactions to enter into these positions or the transactions wherein we cover these positions as well?
Thanks!