Reformatting this dataframe in order to match output format below. It could require a loop to shift the rows by 1 using the iterator, or possibly another numpy function to m