Use of reshape in the labels command

why is reshape (-1,1) given to the labels .what is happening here and why (-1,1) is used secifically