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

    For each element, return the lowest index in the string where
    substring ``sub`` is found, such that ``sub`` is contained in the
    range [``start``, ``end``).

    Parameters
    ----------
    a : array_like, with ``StringDType``, ``bytes_`` or ``str_`` dtype

    sub : array_like, with ``bytes_`` or ``str_`` dtype
        The substring to search for.

    start, end : array_like, with any integer dtype
        The range to look in, interpreted as in slice notation.

    Returns
    -------
    y : ndarray
        Output array of ints

    See Also
    --------
    str.find

    Examples
    --------
    >>> import numpy as np
    >>> a = np.array(["NumPy is a Python library"])
    >>> np.strings.find(a, "Python")
    array([11])

    
=== parse numpydoc
short_description: |
  For each element, return the lowest index in the string where
  substring ``sub`` is found, such that ``sub`` is contained in the
  range [``start``, ``end``).
blank_after_short_description: True
blank_after_long_description: False
style: numpydoc
- DocstringParam
  kind: param
  key: 'param'
  arg_name: 'a'
  type_name: 'array_like, with ``StringDType``, ``bytes_`` or ``str_`` dtype'
  is_optional: False
- DocstringParam
  description: 'The substring to search for.'
  kind: param
  key: 'param'
  arg_name: 'sub'
  type_name: 'array_like, with ``bytes_`` or ``str_`` dtype'
  is_optional: False
- DocstringParam
  description: 'The range to look in, interpreted as in slice notation.'
  kind: param
  key: 'param'
  arg_name: 'start'
  type_name: 'array_like, with any integer dtype'
  is_optional: False
- DocstringParam
  description: 'The range to look in, interpreted as in slice notation.'
  kind: param
  key: 'param'
  arg_name: 'end'
  type_name: 'array_like, with any integer dtype'
  is_optional: False
- DocstringReturns
  description: 'Output array of ints'
  kind: returns
  key: 'returns'
  type_name: 'ndarray'
  is_generator: False
  return_name: 'y'
- DocstringMeta
  description: 'str.find'
  kind: text
  key: 'see_also'
  title: 'See Also'
- DocstringExample
  kind: examples
  key: 'examples'
  snippet: '>>> import numpy as np'
- DocstringExample
  kind: examples
  key: 'examples'
  snippet: '>>> a = np.array(["NumPy is a Python library"])'
- DocstringExample
  kind: examples
  key: 'examples'
  snippet: |
    >>> np.strings.find(a, "Python")
    array([11])
=== detect
numpydoc
=== compose numpydoc
For each element, return the lowest index in the string where
substring ``sub`` is found, such that ``sub`` is contained in the
range [``start``, ``end``).

Parameters
----------
a : array_like, with ``StringDType``, ``bytes_`` or ``str_`` dtype
sub : array_like, with ``bytes_`` or ``str_`` dtype
    The substring to search for.
start : array_like, with any integer dtype
    The range to look in, interpreted as in slice notation.
end : array_like, with any integer dtype
    The range to look in, interpreted as in slice notation.

Returns
-------
y : ndarray
    Output array of ints

See Also
--------
str.find

Examples
--------
>>> import numpy as np
>>> a = np.array(["NumPy is a Python library"])
>>> np.strings.find(a, "Python")
array([11])
