code: def asobject(self):
          
          warnings.warn("'asobject' is deprecated. Use 'astype(object)'"
                        " instead", FutureWarning, stacklevel=2)
          return self.astype(object).values
docs: Return object Series which contains boxed values.
  
          .. deprecated :: 0.23.0
  
             Use ``astype(object)`` instead.
  
          *this is an internal non-public method*