Text of numpy.org › devdocs › reference › generated › numpy.ma.MaskType.astype.html as Styx crawled it on Nov 18, 2026. The page may have changed since. Only its words are kept, without pictures or layout.

Open the live page

numpy.ma.MaskType.astype — NumPy v2.6.dev0 Manual

Skip to main content GitHub numpy.ma.MaskType.astype # method ma.MaskType. astype ( / , dtype , order='K' , casting='unsafe' , subok=True , copy=True ) # Cast the scalar to a specified data type. For immutable scalars, an equivalent dtype returns the original scalar, regardless of the value of copy . On this page