(self, index=None, copy=True, inplace=False, level=None)
return hpat_pandas_series_rename_impl
Intel Scalable Dataframe Compiler User Guide
    ********************************************

    Pandas API: pandas.Series.rename

    Limitations
    -----------
    - Parameter ``level`` is currently unsupported by Intel Scalable Dataframe Compiler.

    Examples
    --------
    .. literalinclude:: ../../../examples/series/series_rename.py
       :language: python
       :lines: 36-
       :caption: Alter Series index labels or name.
       :name: ex_series_rename

    .. command-output:: python ./series/series_rename.py
       :cwd: ../../../examples

    Intel Scalable Dataframe Compiler Developer Guide
    *************************************************
    Pandas Series method :meth:`pandas.Series.rename` implementation.

    .. only:: developer
        Test: python -m sdc.runtests -k sdc.tests.test_series.TestSeries.test_series_rename
Intel Scalable Dataframe Compiler User Guide
    ********************************************
Intel Scalable Dataframe Compiler User Guide ********************************************
def hpat_pandas_series_rename(self, index=None, copy=True, inplace=False, level=None):
    """
    Intel Scalable Dataframe Compiler User Guide
    ********************************************

    Pandas API: pandas.Series.rename

    Limitations
    -----------
    - Parameter ``level`` is currently unsupported by Intel Scalable Dataframe Compiler.

    Examples
    --------
    .. literalinclude:: ../../../examples/series/series_rename.py
       :language: python
       :lines: 36-
       :caption: Alter Series index labels or name.
       :name: ex_series_rename

    .. command-output:: python ./series/series_rename.py
       :cwd: ../../../examples

    Intel Scalable Dataframe Compiler Developer Guide
    *************************************************
    Pandas Series method :meth:`pandas.Series.rename` implementation.

    .. only:: developer
        Test: python -m sdc.runtests -k sdc.tests.test_series.TestSeries.test_series_rename
    """

    ty_checker = TypeChecker('Method rename().')
    ty_checker.check(self, SeriesType)

    if not isinstance(index, (types.Omitted, types.UnicodeType,
                              types.StringLiteral, str,
                              types.Integer, types.Boolean,
                              types.Hashable, types.Float,
                              types.NPDatetime, types.NPTimedelta,
                              types.Number)) and index is not None:
        ty_checker.raise_exc(index, 'string', 'index')

    if not isinstance(copy, (types.Omitted, types.Boolean, bool)):
        ty_checker.raise_exc(copy, 'boolean', 'copy')

    if not isinstance(inplace, (types.Omitted, types.Boolean, bool)):
        ty_checker.raise_exc(inplace, 'boolean', 'inplace')

    if not isinstance(level, (types.Omitted, types.UnicodeType,
                              types.StringLiteral, types.Integer)) and level is not None:
        ty_checker.raise_exc(level, 'Integer or string', 'level')

    def hpat_pandas_series_rename_impl(self, index=None, copy=True, inplace=False, level=None):
        if copy is True:
            series_data = self._data.copy()
            series_index = self._index.copy()
        else:
            series_data = self._data
            series_index = self._index

        return pandas.Series(data=series_data, index=series_index, name=index)

    return hpat_pandas_series_rename_impl
def hpat_pandas_series_rename ( self , index = None , copy = True , inplace = False , level = None ) : ty_checker = TypeChecker ( 'Method rename().' ) ty_checker . check ( self , SeriesType ) if not isinstance ( index , ( types . Omitted , types . UnicodeType , types . StringLiteral , str , types . Integer , types . Boolean , types . Hashable , types . Float , types . NPDatetime , types . NPTimedelta , types . Number ) ) and index is not None : ty_checker . raise_exc ( index , 'string' , 'index' ) if not isinstance ( copy , ( types . Omitted , types . Boolean , bool ) ) : ty_checker . raise_exc ( copy , 'boolean' , 'copy' ) if not isinstance ( inplace , ( types . Omitted , types . Boolean , bool ) ) : ty_checker . raise_exc ( inplace , 'boolean' , 'inplace' ) if not isinstance ( level , ( types . Omitted , types . UnicodeType , types . StringLiteral , types . Integer ) ) and level is not None : ty_checker . raise_exc ( level , 'Integer or string' , 'level' ) def hpat_pandas_series_rename_impl ( self , index = None , copy = True , inplace = False , level = None ) : if copy is True : series_data = self . _data . copy ( ) series_index = self . _index . copy ( ) else : series_data = self . _data series_index = self . _index return pandas . Series ( data = series_data , index = series_index , name = index ) return hpat_pandas_series_rename_impl