parameters: (
          self,
          dtype: Union[Dtype, None] = None,
          copy: bool = True,
          na_value=None,
      )
return_statement: return self._to_array(
              (lambda col: col.values_host), np.empty, dtype, na_value
          )
docstring: Convert the Frame to a NumPy array.
  
          Parameters
          ----------
          dtype : str or numpy.dtype, optional
              The dtype to pass to :meth:`numpy.asarray`.
          copy : bool, 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_value : Any, 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
docstring_summary: Convert the Frame to a NumPy array.
docstring_tokens: Convert the Frame to a NumPy array .
function: def to_numpy(
          self,
          dtype: Union[Dtype, None] = None,
          copy: bool = True,
          na_value=None,
      ) -> np.ndarray:
          """Convert the Frame to a NumPy array.
  
          Parameters
          ----------
          dtype : str or numpy.dtype, optional
              The dtype to pass to :meth:`numpy.asarray`.
          copy : bool, 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_value : Any, 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
          """
          if not copy:
              raise ValueError(
                  "copy=False is not supported because conversion to a numpy "
                  "array always copies the data."
              )
  
          return self._to_array(
              (lambda col: col.values_host), np.empty, dtype, na_value
          )
function_tokens: def to_numpy ( self , dtype : Union [ Dtype , None ] = None , copy : bool = True , na_value = None , ) -> np . ndarray : if not copy : raise ValueError ( "copy=False is not supported because conversion to a numpy " "array always copies the data." ) return self . _to_array ( ( lambda col : col . values_host ) , np . empty , dtype , na_value )