You can customize the transpose operation by providing the axes parameter to numpy.transpose(). By specifying the order of dimensions in the axes parameter, you can achieve the desired transposition.