SciPy

numpy.dtype.shape

dtype.shape

Shape tuple of the sub-array if this data type describes a sub-array, and () otherwise.

Previous topic

numpy.dtype.subdtype

Next topic

numpy.dtype.hasobject