Series.to_numpy(dtype: Dtype | None = None, copy: bool = True, na_value=None) numpy.ndarray[source]#

Convert the Frame to a NumPy array.

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.