A square pyramidal shape results when one of the bonds of an octahedron structure is occupied by a lone pair.
Hence there are 5 bonded atoms and one lone pair. The hybridization about the central atom is .
One of the most common example is Xenon tetraflouride. . Looking at its structure we can see that it has 5 pairs of outer atoms and one lone pair. With its coordination number 5. The shape of the orbitals is octahedral.