I am looking for the most efficient way to pack a list of values into a numpy array. The values list consists of mixes between singular values and different