parameters: (self)
return_statement: return np.asarray(self)
docstring: Return my 'dense' representation
  
          For internal compatibility with numpy arrays.
  
          Returns
          -------
          dense : array
docstring_summary: Return my 'dense' representation
docstring_tokens: Return my dense representation
function: def to_dense(self) -> np.ndarray:
          """
          Return my 'dense' representation
  
          For internal compatibility with numpy arrays.
  
          Returns
          -------
          dense : array
          """
          warn(
              "Categorical.to_dense is deprecated and will be removed in "
              "a future version.  Use np.asarray(cat) instead.",
              FutureWarning,
              stacklevel=2,
          )
          return np.asarray(self)
function_tokens: def to_dense ( self ) -> np . ndarray : warn ( "Categorical.to_dense is deprecated and will be removed in " "a future version.  Use np.asarray(cat) instead." , FutureWarning , stacklevel = 2 , ) return np . asarray ( self )