(self, deep=True)
return hpat_pandas_series_copy_impl
Intel Scalable Dataframe Compiler User Guide
    ********************************************

    Pandas API: pandas.Series.copy

    Limitations
    -----------
    - When ``deep=False``, a new object will be created without copying the calling object’s data
    and with a copy of the calling object’s indices.

    Examples
    --------
    .. literalinclude:: ../../../examples/series/series_copy.py
       :language: python
       :lines: 27-
       :caption: Make a copy of this object’s indices and data.
       :name: ex_series_copy

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

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

    .. only:: developer
        Test: python -m sdc.runtests sdc.tests.test_series -k series_copy
Intel Scalable Dataframe Compiler User Guide
    ********************************************
Intel Scalable Dataframe Compiler User Guide ********************************************
def hpat_pandas_series_copy(self, deep=True):
    """
    Intel Scalable Dataframe Compiler User Guide
    ********************************************

    Pandas API: pandas.Series.copy

    Limitations
    -----------
    - When ``deep=False``, a new object will be created without copying the calling object’s data
    and with a copy of the calling object’s indices.

    Examples
    --------
    .. literalinclude:: ../../../examples/series/series_copy.py
       :language: python
       :lines: 27-
       :caption: Make a copy of this object’s indices and data.
       :name: ex_series_copy

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

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

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

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

    if not isinstance(deep, (types.Omitted, types.Boolean)) and not deep:
        ty_checker.raise_exc(deep, 'boolean', 'deep')

    index_api_supported = not isinstance(self.index, sdc_old_index_types)

    def hpat_pandas_series_copy_impl(self, deep=True):
        new_series_data = numpy_like.copy(self._data) if deep else self._data

        if index_api_supported == False:  # noqa
            new_series_index = self._index.copy() if deep else self._index
        else:
            new_series_index = self._index.copy(deep=deep)
        return pandas.Series(new_series_data, new_series_index, name=self._name)

    return hpat_pandas_series_copy_impl
def hpat_pandas_series_copy ( self , deep = True ) : ty_checker = TypeChecker ( 'Method Series.copy().' ) ty_checker . check ( self , SeriesType ) if not isinstance ( deep , ( types . Omitted , types . Boolean ) ) and not deep : ty_checker . raise_exc ( deep , 'boolean' , 'deep' ) index_api_supported = not isinstance ( self . index , sdc_old_index_types ) def hpat_pandas_series_copy_impl ( self , deep = True ) : new_series_data = numpy_like . copy ( self . _data ) if deep else self . _data if index_api_supported == False : # noqa new_series_index = self . _index . copy ( ) if deep else self . _index else : new_series_index = self . _index . copy ( deep = deep ) return pandas . Series ( new_series_data , new_series_index , name = self . _name ) return hpat_pandas_series_copy_impl