pandas.arrays.PandasArray.to_numpy

PandasArray.to_numpy(dtype=None, copy=False)[source]

Convert the PandasArray to a numpy.ndarray.

By default, this requires no coercion or copying of data.

Parameters:
dtype : numpy.dtype

The NumPy dtype to pass to numpy.asarray().

copy : bool, default False

Whether to copy the underlying data.

Returns:
ndarray
Scroll To Top