parameters: (self, dtype=None, copy=False, na_value=lib.no_default)
return_statement: return result
docstring: Convert to a NumPy ndarray.
  
          .. versionadded:: 1.0.0
  
          This is similar to :meth:`numpy.asarray`, but may provide additional control
          over how the conversion is done.
  
          Parameters
          ----------
          dtype : str or numpy.dtype, optional
              The dtype to pass to :meth:`numpy.asarray`.
          copy : bool, default False
              Whether to ensure that the returned value is a not a view on
              another array. Note that ``copy=False`` does not *ensure* that
              ``to_numpy()`` is no-copy. Rather, ``copy=True`` ensure that
              a copy is made, even if not strictly necessary.
          na_value : Any, optional
              The value to use for missing values. The default value depends
              on `dtype` and the type of the array.
  
          Returns
          -------
          numpy.ndarray
docstring_summary: Convert to a NumPy ndarray.
docstring_tokens: Convert to a NumPy ndarray .
function: def to_numpy(self, dtype=None, copy=False, na_value=lib.no_default):
          """
          Convert to a NumPy ndarray.
  
          .. versionadded:: 1.0.0
  
          This is similar to :meth:`numpy.asarray`, but may provide additional control
          over how the conversion is done.
  
          Parameters
          ----------
          dtype : str or numpy.dtype, optional
              The dtype to pass to :meth:`numpy.asarray`.
          copy : bool, default False
              Whether to ensure that the returned value is a not a view on
              another array. Note that ``copy=False`` does not *ensure* that
              ``to_numpy()`` is no-copy. Rather, ``copy=True`` ensure that
              a copy is made, even if not strictly necessary.
          na_value : Any, optional
              The value to use for missing values. The default value depends
              on `dtype` and the type of the array.
  
          Returns
          -------
          numpy.ndarray
          """
          result = np.asarray(self, dtype=dtype)
          if copy or na_value is not lib.no_default:
              result = result.copy()
          if na_value is not lib.no_default:
              result[self.isna()] = na_value
          return result
function_tokens: def to_numpy ( self , dtype = None , copy = False , na_value = lib . no_default ) : result = np . asarray ( self , dtype = dtype ) if copy or na_value is not lib . no_default : result = result . copy ( ) if na_value is not lib . no_default : result [ self . isna ( ) ] = na_value return result