I have a Dataframe that looks as follows:
Serial : Status   : Date     : Comment
---------------------------------------
306    :  in      : 4/25/22  : Reported 
306    :  out     : 3/15/22  : Reported
306    :  damaged : 2/1/22   : Reported
307    :  in      : 7/6/22   : 
309    :          :          : 
310    :  out     : 6/5/22   : Not Reported
311    :  out     : 5/5/22   : Not Reported
311    :  in      : 4/5/22   : 
I would like to reshape it to look as follows:
Serial : Status   : Date     : Comment        : Status_1   : Date_1     : Comment_1. : Status_2   : Date_2     : Comment_2
-----------------------------------------------------------------------------------------------------------------------
306    :  in      : 4/25/22  : Reported       :  out       : 3/15/22    : Reported   :  damaged   : 2/1/22     : Reported
307    :  in      : 7/6/22   : 
309    :          :          : 
310    :  out     : 6/5/22   : Not Reported
311    :  out     : 5/5/22   : Not Reported   :  in        : 4/5/22     : 
I have tried using Transpose and Pivot tables, but am unable to get the desired output. I have also tried iterating over the Dataframe by row and column and assigning values to new columns but that hasn't worked as expected either. How can I achieve the desired output ?
 
    

