Why is reshaped used

why is reshaped used for labels an how are we arranging it