cudf.Series.to_numpy#

Series.to_numpy(dtype: Union[Dtype, None] = None, copy: bool = True, na_value=None) np.ndarray#

Convert the Frame to a NumPy array.

Parameters
dtypestr or numpy.dtype, optional

The dtype to pass to numpy.asarray().

copybool, default True

Whether to ensure that the returned value is not a view on another array. This parameter must be True since cuDF must copy device memory to host to provide a numpy array.

na_valueAny, default None

The value to use for missing values. The default value depends on dtype and the dtypes of the DataFrame columns.

Returns
numpy.ndarray