attribute
dtype.alignment The required alignment (bytes) of this data-type according to the compiler.
More information is available in the C-API section of the manual.
>>> x = np.dtype('i4')
>>> x.alignment
4
 >>> x = np.dtype(float) >>> x.alignment 8
    © 2005–2019 NumPy Developers
Licensed under the 3-clause BSD License.
    https://docs.scipy.org/doc/numpy-1.17.0/reference/generated/numpy.dtype.alignment.html