# pandas 3.1.0 (BSD-3-Clause), harvested by tools/harvest_corpus.py
=== input

        Shift index by desired number of time frequency increments.

        This method is for shifting the values of datetime-like indexes
        by a specified time increment a given number of times.

        Parameters
        ----------
        periods : int, default 1
            Number of periods (or increments) to shift by,
            can be positive or negative.
        freq : pandas.DateOffset, pandas.Timedelta or string, optional
            Frequency increment to shift by.
            If None, the index is shifted by its own `freq` attribute.
            Offset aliases are valid strings, e.g., 'D', 'W', 'M' etc.

        Returns
        -------
        pandas.DatetimeIndex
            Shifted index.

        See Also
        --------
        Index.shift : Shift values of Index.
        PeriodIndex.shift : Shift values of PeriodIndex.
        
=== parse numpydoc
short_description: 'Shift index by desired number of time frequency increments.'
long_description: |
  This method is for shifting the values of datetime-like indexes
  by a specified time increment a given number of times.
blank_after_short_description: True
blank_after_long_description: True
style: numpydoc
- DocstringParam
  description: |
    Number of periods (or increments) to shift by,
    can be positive or negative.
  kind: param
  key: 'param'
  arg_name: 'periods'
  type_name: 'int'
  is_optional: True
  default: '1'
  raw_type_name: 'int, default 1'
- DocstringParam
  description: |
    Frequency increment to shift by.
    If None, the index is shifted by its own `freq` attribute.
    Offset aliases are valid strings, e.g., 'D', 'W', 'M' etc.
  kind: param
  key: 'param'
  arg_name: 'freq'
  type_name: 'pandas.DateOffset, pandas.Timedelta or string'
  is_optional: True
  raw_type_name: 'pandas.DateOffset, pandas.Timedelta or string, optional'
- DocstringReturns
  description: 'Shifted index.'
  kind: returns
  key: 'returns'
  type_name: 'pandas.DatetimeIndex'
  is_generator: False
- DocstringMeta
  description: |
    Index.shift : Shift values of Index.
    PeriodIndex.shift : Shift values of PeriodIndex.
  kind: text
  key: 'see_also'
  title: 'See Also'
=== detect
numpydoc
=== compose numpydoc
Shift index by desired number of time frequency increments.

This method is for shifting the values of datetime-like indexes
by a specified time increment a given number of times.

Parameters
----------
periods : int, default 1
    Number of periods (or increments) to shift by,
    can be positive or negative.
freq : pandas.DateOffset, pandas.Timedelta or string, optional
    Frequency increment to shift by.
    If None, the index is shifted by its own `freq` attribute.
    Offset aliases are valid strings, e.g., 'D', 'W', 'M' etc.

Returns
-------
pandas.DatetimeIndex
    Shifted index.

See Also
--------
Index.shift : Shift values of Index.
PeriodIndex.shift : Shift values of PeriodIndex.
