Table Of Contents


Enter search terms or a module, class or function name.


IntervalArray.astype(dtype, copy=True)[source]

Cast to an ExtensionArray or NumPy array with dtype ‘dtype’.

dtype : str or dtype

Typecode or data-type to which the array is cast.

copy : bool, default True

Whether to copy the data, even if not necessary. If False, a copy is made only if the old dtype does not match the new dtype.

array : ExtensionArray or ndarray

ExtensionArray or NumPy ndarray with ‘dtype’ for its dtype.

Scroll To Top