(self, indices, axis=0, is_copy=False)
return hpat_pandas_series_take_impl
Intel Scalable Dataframe Compiler User Guide
    ********************************************

    Pandas API: pandas.Series.take

    Limitations
    -----------
    Parameter ``axis`` is supported only with default values ``0`` and ``'index'``.
    Parameter ``is_copy`` is supported only with default value ``False``.

    Examples
    --------
    .. literalinclude:: ../../../examples/series/series_take.py
       :language: python
       :lines: 27-
       :caption: Return the elements in the given positional indices along an axis.
       :name: ex_series_take

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

    .. seealso::
        :ref:`DataFrame.loc <pandas.DataFrame.loc>`
            Select a subset of a DataFrame by labels.
        :ref:`DataFrame.iloc <pandas.DataFrame.iloc>`
            Select a subset of a DataFrame by positions.

    Intel Scalable Dataframe Compiler Developer Guide
    *************************************************

    Pandas Series method :meth:`pandas.Series.take` implementation.

    .. only:: developer

        Test: python -m sdc.runtests -k sdc.tests.test_series.TestSeries.test_series_take_index_*
Intel Scalable Dataframe Compiler User Guide
    ********************************************
Intel Scalable Dataframe Compiler User Guide ********************************************
def hpat_pandas_series_take(self, indices, axis=0, is_copy=False):
    """
    Intel Scalable Dataframe Compiler User Guide
    ********************************************

    Pandas API: pandas.Series.take

    Limitations
    -----------
    Parameter ``axis`` is supported only with default values ``0`` and ``'index'``.
    Parameter ``is_copy`` is supported only with default value ``False``.

    Examples
    --------
    .. literalinclude:: ../../../examples/series/series_take.py
       :language: python
       :lines: 27-
       :caption: Return the elements in the given positional indices along an axis.
       :name: ex_series_take

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

    .. seealso::
        :ref:`DataFrame.loc <pandas.DataFrame.loc>`
            Select a subset of a DataFrame by labels.
        :ref:`DataFrame.iloc <pandas.DataFrame.iloc>`
            Select a subset of a DataFrame by positions.

    Intel Scalable Dataframe Compiler Developer Guide
    *************************************************

    Pandas Series method :meth:`pandas.Series.take` implementation.

    .. only:: developer

        Test: python -m sdc.runtests -k sdc.tests.test_series.TestSeries.test_series_take_index_*
    """

    _func_name = 'Method take().'

    ty_checker = TypeChecker(_func_name)
    ty_checker.check(self, SeriesType)

    if (not isinstance(axis, (int, types.Integer, str, types.UnicodeType, types.StringLiteral, types.Omitted))
        and axis not in (0, 'index')):
        ty_checker.raise_exc(axis, 'integer or string', 'axis')

    if not isinstance(is_copy, (bool, types.Boolean, types.Omitted)) and is_copy is not False:
        ty_checker.raise_exc(is_copy, 'boolean', 'is_copy')

    if not isinstance(indices, (types.List, types.Array)):
        ty_checker.raise_exc(indices, 'array-like', 'indices')

    def hpat_pandas_series_take_impl(self, indices, axis=0, is_copy=False):
        local_data = [self._data[i] for i in indices]
        local_index = [self._index[i] for i in indices]

        return pandas.Series(local_data, local_index)

    return hpat_pandas_series_take_impl
def hpat_pandas_series_take ( self , indices , axis = 0 , is_copy = False ) : _func_name = 'Method take().' ty_checker = TypeChecker ( _func_name ) ty_checker . check ( self , SeriesType ) if ( not isinstance ( axis , ( int , types . Integer , str , types . UnicodeType , types . StringLiteral , types . Omitted ) ) and axis not in ( 0 , 'index' ) ) : ty_checker . raise_exc ( axis , 'integer or string' , 'axis' ) if not isinstance ( is_copy , ( bool , types . Boolean , types . Omitted ) ) and is_copy is not False : ty_checker . raise_exc ( is_copy , 'boolean' , 'is_copy' ) if not isinstance ( indices , ( types . List , types . Array ) ) : ty_checker . raise_exc ( indices , 'array-like' , 'indices' ) def hpat_pandas_series_take_impl ( self , indices , axis = 0 , is_copy = False ) : local_data = [ self . _data [ i ] for i in indices ] local_index = [ self . _index [ i ] for i in indices ] return pandas . Series ( local_data , local_index ) return hpat_pandas_series_take_impl