parameters: (self, table: dict)
return_statement: return self._return_or_inplace(
              libstrings.translate(self._column, table)
          )
docstring: Map all characters in the string through the given
          mapping table.
  
          Equivalent to standard `str.translate()
          <https://docs.python.org/3/library/stdtypes.html#str.translate>`_.
  
          Parameters
          ----------
          table : dict
              Table is a mapping of Unicode ordinals to Unicode
              ordinals, strings, or None.
              Unmapped characters are left untouched.
              `str.maketrans()
              <https://docs.python.org/3/library/stdtypes.html#str.maketrans>`_
              is a helper function for making translation tables.
  
          Returns
          -------
          Series or Index.
  
          Examples
          --------
          >>> import cudf
          >>> data = ['lower', 'CAPITALS', 'this is a sentence','SwApCaSe']
          >>> s = cudf.Series(data)
          >>> s.str.translate({'a': "1"})
          0                 lower
          1              CAPITALS
          2    this is 1 sentence
          3              SwApC1Se
          dtype: object
          >>> s.str.translate({'a': "1", "e":"#"})
          0                 low#r
          1              CAPITALS
          2    this is 1 s#nt#nc#
          3              SwApC1S#
          dtype: object
docstring_summary: Map all characters in the string through the given
          mapping table.
docstring_tokens: Map all characters in the string through the given mapping table .
function: def translate(self, table: dict) -> SeriesOrIndex:
          """
          Map all characters in the string through the given
          mapping table.
  
          Equivalent to standard `str.translate()
          <https://docs.python.org/3/library/stdtypes.html#str.translate>`_.
  
          Parameters
          ----------
          table : dict
              Table is a mapping of Unicode ordinals to Unicode
              ordinals, strings, or None.
              Unmapped characters are left untouched.
              `str.maketrans()
              <https://docs.python.org/3/library/stdtypes.html#str.maketrans>`_
              is a helper function for making translation tables.
  
          Returns
          -------
          Series or Index.
  
          Examples
          --------
          >>> import cudf
          >>> data = ['lower', 'CAPITALS', 'this is a sentence','SwApCaSe']
          >>> s = cudf.Series(data)
          >>> s.str.translate({'a': "1"})
          0                 lower
          1              CAPITALS
          2    this is 1 sentence
          3              SwApC1Se
          dtype: object
          >>> s.str.translate({'a': "1", "e":"#"})
          0                 low#r
          1              CAPITALS
          2    this is 1 s#nt#nc#
          3              SwApC1S#
          dtype: object
          """
          table = str.maketrans(table)
          return self._return_or_inplace(
              libstrings.translate(self._column, table)
          )
function_tokens: def translate ( self , table : dict ) -> SeriesOrIndex : table = str . maketrans ( table ) return self . _return_or_inplace ( libstrings . translate ( self . _column , table ) )