dtype.shape
Shape tuple of the sub-array if this data type describes a sub-array, and () otherwise.
()
© 2008–2016 NumPy DevelopersLicensed under the NumPy License. https://docs.scipy.org/doc/numpy-1.11.0/reference/generated/numpy.dtype.shape.html