Dropping the row and reshaping

I didn’t understand the dropping of the column and the reshaping part of the video. How did you even think about entering into a number of columns and rows? Kindly explain how do I think about it