code: def convert_to_cgs(self, equivalence=None, **kwargs):
          
          self.convert_to_units(
              self.units.get_cgs_equivalent(), equivalence=equivalence, **kwargs
          )
docs: Convert the array and in-place to the equivalent cgs units.
  
          Optionally, an equivalence can be specified to convert to an
          equivalent quantity which is not in the same dimensions.
  
          Parameters
          ----------
          equivalence : string, optional
              The equivalence you wish to use. To see which equivalencies
              are supported for this object, try the ``list_equivalencies``
              method. Default: None
          kwargs: optional
              Any additional keyword arguments are supplied to the equivalence
  
          Raises
          ------
          If the provided unit does not have the same dimensions as the array
          this will raise a UnitConversionError
  
          Examples
          --------
          >>> from unyt import Newton
          >>> data = [1., 2., 3.]*Newton
          >>> data.convert_to_cgs()
          >>> data
          unyt_array([100000., 200000., 300000.], 'dyn')