(self, sub, start=0, end=None)
return hpat_pandas_stringmethods_find_impl
Intel Scalable Dataframe Compiler User Guide
    ********************************************
    Pandas API: pandas.Series.str.find

    Limitations
    -----------
    Series elements are expected to be Unicode strings. Elements cannot be `NaNs`.
    Parameters ``start``, ``end`` are supported only with default value ``0`` and ``None`` respectively.

    Examples
    --------
    .. literalinclude:: ../../../examples/series/str/series_str_find.py
       :language: python
       :lines: 27-
       :caption: Return lowest indexes in each strings in the Series
       :name: ex_series_str_find

    .. command-output:: python ./series/str/series_str_find.py
       :cwd: ../../../examples

    .. seealso::
        :ref:`Series.str.rfind <pandas.Series.str.rfind>`
            Return highest indexes in each strings.

    .. todo:: Add support of parameters ``start`` and ``end``

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

    Pandas Series method :meth:`pandas.core.strings.StringMethods.find()` implementation.

    .. only:: developer

    Test: python -m sdc.runtests -k sdc.tests.test_series.TestSeries.test_series_find
Intel Scalable Dataframe Compiler User Guide
    ********************************************
    Pandas API: pandas.Series.str.find
Intel Scalable Dataframe Compiler User Guide ******************************************** Pandas API : pandas . Series . str . find
def hpat_pandas_stringmethods_find(self, sub, start=0, end=None):
    """
    Intel Scalable Dataframe Compiler User Guide
    ********************************************
    Pandas API: pandas.Series.str.find

    Limitations
    -----------
    Series elements are expected to be Unicode strings. Elements cannot be `NaNs`.
    Parameters ``start``, ``end`` are supported only with default value ``0`` and ``None`` respectively.

    Examples
    --------
    .. literalinclude:: ../../../examples/series/str/series_str_find.py
       :language: python
       :lines: 27-
       :caption: Return lowest indexes in each strings in the Series
       :name: ex_series_str_find

    .. command-output:: python ./series/str/series_str_find.py
       :cwd: ../../../examples

    .. seealso::
        :ref:`Series.str.rfind <pandas.Series.str.rfind>`
            Return highest indexes in each strings.

    .. todo:: Add support of parameters ``start`` and ``end``

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

    Pandas Series method :meth:`pandas.core.strings.StringMethods.find()` implementation.

    .. only:: developer

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

    ty_checker = TypeChecker('Method find().')
    ty_checker.check(self, StringMethodsType)

    if not isinstance(sub, (StringLiteral, UnicodeType)):
        ty_checker.raise_exc(sub, 'str', 'sub')

    accepted_types = (Integer, NoneType, Omitted)
    if not isinstance(start, accepted_types) and start != 0:
        ty_checker.raise_exc(start, 'None, int', 'start')

    if not isinstance(end, accepted_types) and end is not None:
        ty_checker.raise_exc(end, 'None, int', 'end')

    def hpat_pandas_stringmethods_find_impl(self, sub, start=0, end=None):
        if start != 0:
            raise ValueError('Method find(). The object start\n expected: 0')
        if end is not None:
            raise ValueError('Method find(). The object end\n expected: None')

        item_count = len(self._data)
        result = numpy.empty(item_count, numba.types.int64)
        for idx, item in enumerate(self._data._data):
            result[idx] = item.find(sub)

        return pandas.Series(result, self._data._index, name=self._data._name)

    return hpat_pandas_stringmethods_find_impl
def hpat_pandas_stringmethods_find ( self , sub , start = 0 , end = None ) : ty_checker = TypeChecker ( 'Method find().' ) ty_checker . check ( self , StringMethodsType ) if not isinstance ( sub , ( StringLiteral , UnicodeType ) ) : ty_checker . raise_exc ( sub , 'str' , 'sub' ) accepted_types = ( Integer , NoneType , Omitted ) if not isinstance ( start , accepted_types ) and start != 0 : ty_checker . raise_exc ( start , 'None, int' , 'start' ) if not isinstance ( end , accepted_types ) and end is not None : ty_checker . raise_exc ( end , 'None, int' , 'end' ) def hpat_pandas_stringmethods_find_impl ( self , sub , start = 0 , end = None ) : if start != 0 : raise ValueError ( 'Method find(). The object start\n expected: 0' ) if end is not None : raise ValueError ( 'Method find(). The object end\n expected: None' ) item_count = len ( self . _data ) result = numpy . empty ( item_count , numba . types . int64 ) for idx , item in enumerate ( self . _data . _data ) : result [ idx ] = item . find ( sub ) return pandas . Series ( result , self . _data . _index , name = self . _data . _name ) return hpat_pandas_stringmethods_find_impl