NumPy Create Array with Minimum Dimensions

Example:

import numpy as np
a = np.array([1, 2, 3], ndmin=2)
print a

The result is:

array([[1, 2, 3]])