Join columns by rows for each time step my dataframe is as follows and I would like to rearrange, update and save it to csv or similar format.