parameters: (self, freq)
return_statement: return self.__class__._from_data({self.name: out_column})
docstring: Perform round operation on the data to the specified freq.
  
          Parameters
          ----------
          freq : str
              One of ["D", "H", "T", "min", "S", "L", "ms", "U", "us", "N"].
              Must be a fixed frequency like 'S' (second) not 'ME' (month end).
              See `frequency aliases <https://pandas.pydata.org/docs/\
                  user_guide/timeseries.html#timeseries-offset-aliases>`__
              for more details on these aliases.
  
          Returns
          -------
          DatetimeIndex
              Index containing rounded datetimes.
  
          Examples
          --------
          >>> import cudf
          >>> dt_idx = cudf.Index([
          ...     "2001-01-01 00:04:45",
          ...     "2001-01-01 00:04:58",
          ...     "2001-01-01 00:05:04",
          ... ], dtype="datetime64[ns]")
          >>> dt_idx
          DatetimeIndex(['2001-01-01 00:04:45', '2001-01-01 00:04:58',
                         '2001-01-01 00:05:04'],
                        dtype='datetime64[ns]')
          >>> dt_idx.round('H')
          DatetimeIndex(['2001-01-01', '2001-01-01', '2001-01-01'], dtype='datetime64[ns]')
          >>> dt_idx.round('T')
          DatetimeIndex(['2001-01-01 00:05:00', '2001-01-01 00:05:00', '2001-01-01 00:05:00'], dtype='datetime64[ns]')
docstring_summary: Perform round operation on the data to the specified freq.
docstring_tokens: Perform round operation on the data to the specified freq .
function: def round(self, freq):
          """
          Perform round operation on the data to the specified freq.
  
          Parameters
          ----------
          freq : str
              One of ["D", "H", "T", "min", "S", "L", "ms", "U", "us", "N"].
              Must be a fixed frequency like 'S' (second) not 'ME' (month end).
              See `frequency aliases <https://pandas.pydata.org/docs/\
                  user_guide/timeseries.html#timeseries-offset-aliases>`__
              for more details on these aliases.
  
          Returns
          -------
          DatetimeIndex
              Index containing rounded datetimes.
  
          Examples
          --------
          >>> import cudf
          >>> dt_idx = cudf.Index([
          ...     "2001-01-01 00:04:45",
          ...     "2001-01-01 00:04:58",
          ...     "2001-01-01 00:05:04",
          ... ], dtype="datetime64[ns]")
          >>> dt_idx
          DatetimeIndex(['2001-01-01 00:04:45', '2001-01-01 00:04:58',
                         '2001-01-01 00:05:04'],
                        dtype='datetime64[ns]')
          >>> dt_idx.round('H')
          DatetimeIndex(['2001-01-01', '2001-01-01', '2001-01-01'], dtype='datetime64[ns]')
          >>> dt_idx.round('T')
          DatetimeIndex(['2001-01-01 00:05:00', '2001-01-01 00:05:00', '2001-01-01 00:05:00'], dtype='datetime64[ns]')
          """  # noqa: E501
          out_column = self._values.round(freq)
  
          return self.__class__._from_data({self.name: out_column})
function_tokens: def round ( self , freq ) : # noqa: E501 out_column = self . _values . round ( freq ) return self . __class__ . _from_data ( { self . name : out_column } )