parameters: (self, date_format, *args, **kwargs)
return_statement: return Series(
              data=str_col, index=self.series._index, name=self.series.name
          )
docstring: Convert to Series using specified ``date_format``.
  
          Return a Series of formatted strings specified by ``date_format``,
          which supports the same string format as the python standard library.
          Details of the string format can be found in `python string format doc
          <https://docs.python.org/3/library/datetime.html#strftime-and-strptime-behavior>`_.
  
          Parameters
          ----------
          date_format : str
              Date format string (e.g. “%Y-%m-%d”).
  
          Returns
          -------
          Series
              Series of formatted strings.
  
          Notes
          -----
  
          The following date format identifiers are not yet
          supported: ``%c``, ``%x``,``%X``
  
          Examples
          --------
          >>> import cudf
          >>> import pandas as pd
          >>> weekday_series = cudf.Series(pd.date_range("2000-01-01", periods=3,
          ...      freq="q"))
          >>> weekday_series.dt.strftime("%Y-%m-%d")
          >>> weekday_series
          0   2000-03-31
          1   2000-06-30
          2   2000-09-30
          dtype: datetime64[ns]
          0    2000-03-31
          1    2000-06-30
          2    2000-09-30
          dtype: object
          >>> weekday_series.dt.strftime("%Y %d %m")
          0    2000 31 03
          1    2000 30 06
          2    2000 30 09
          dtype: object
          >>> weekday_series.dt.strftime("%Y / %d / %m")
          0    2000 / 31 / 03
          1    2000 / 30 / 06
          2    2000 / 30 / 09
          dtype: object
docstring_summary: Convert to Series using specified ``date_format``.
docstring_tokens: Convert to Series using specified date_format .
function: def strftime(self, date_format, *args, **kwargs):
          """
          Convert to Series using specified ``date_format``.
  
          Return a Series of formatted strings specified by ``date_format``,
          which supports the same string format as the python standard library.
          Details of the string format can be found in `python string format doc
          <https://docs.python.org/3/library/datetime.html#strftime-and-strptime-behavior>`_.
  
          Parameters
          ----------
          date_format : str
              Date format string (e.g. “%Y-%m-%d”).
  
          Returns
          -------
          Series
              Series of formatted strings.
  
          Notes
          -----
  
          The following date format identifiers are not yet
          supported: ``%c``, ``%x``,``%X``
  
          Examples
          --------
          >>> import cudf
          >>> import pandas as pd
          >>> weekday_series = cudf.Series(pd.date_range("2000-01-01", periods=3,
          ...      freq="q"))
          >>> weekday_series.dt.strftime("%Y-%m-%d")
          >>> weekday_series
          0   2000-03-31
          1   2000-06-30
          2   2000-09-30
          dtype: datetime64[ns]
          0    2000-03-31
          1    2000-06-30
          2    2000-09-30
          dtype: object
          >>> weekday_series.dt.strftime("%Y %d %m")
          0    2000 31 03
          1    2000 30 06
          2    2000 30 09
          dtype: object
          >>> weekday_series.dt.strftime("%Y / %d / %m")
          0    2000 / 31 / 03
          1    2000 / 30 / 06
          2    2000 / 30 / 09
          dtype: object
          """
  
          if not isinstance(date_format, str):
              raise TypeError(
                  f"'date_format' must be str, not {type(date_format)}"
              )
  
          # TODO: Remove following validations
          # once https://github.com/rapidsai/cudf/issues/5991
          # is implemented
          not_implemented_formats = {
              "%c",
              "%x",
              "%X",
          }
          for d_format in not_implemented_formats:
              if d_format in date_format:
                  raise NotImplementedError(
                      f"{d_format} date-time format is not "
                      f"supported yet, Please follow this issue "
                      f"https://github.com/rapidsai/cudf/issues/5991 "
                      f"for tracking purposes."
                  )
          str_col = self.series._column.as_string_column(
              dtype="str", format=date_format
          )
          return Series(
              data=str_col, index=self.series._index, name=self.series.name
          )
function_tokens: def strftime ( self , date_format , * args , * * kwargs ) : if not isinstance ( date_format , str ) : raise TypeError ( f"'date_format' must be str, not {type(date_format)}" ) # TODO: Remove following validations # once https://github.com/rapidsai/cudf/issues/5991 # is implemented not_implemented_formats = { "%c" , "%x" , "%X" , } for d_format in not_implemented_formats : if d_format in date_format : raise NotImplementedError ( f"{d_format} date-time format is not " f"supported yet, Please follow this issue " f"https://github.com/rapidsai/cudf/issues/5991 " f"for tracking purposes." ) str_col = self . series . _column . as_string_column ( dtype = "str" , format = date_format ) return Series ( data = str_col , index = self . series . _index , name = self . series . name )