code: def _translate(self, from_str, to_str):
      
      return ops.Translate(self, from_str, to_str).to_expr()
docs: Returns string with set of 'from' characters replaced
      by set of 'to' characters.
      from_str[x] is replaced by to_str[x].
      To avoid unexpected behavior, from_str should be
      shorter than to_string.
  
      Parameters
      ----------
      from_str : string
      to_str : string
  
      Examples
      --------
      >>> import ibis
      >>> table = ibis.table([('string_col', 'string')])
      >>> expr = table.string_col.translate('a', 'b')
      >>> expr = table.string_col.translate('a', 'bc')
  
      Returns
      -------
      translated : string