Movatterモバイル変換


[0]ホーム

URL:


SciPy

numpy.core.defchararray.index

numpy.core.defchararray.index(a,sub,start=0,end=None)[source]

Likefind, but raisesValueError when the substring is not found.

Callsstr.index element-wise.

Parameters:

a : array_like of str or unicode

sub : str or unicode

start, end : int, optional

Returns:

out : ndarray

Output array of ints. Returns -1 ifsub is not found.

See also

find,str.find

Previous topic

numpy.core.defchararray.find

Next topic

numpy.core.defchararray.isalpha

  • © Copyright 2008-2009, The Scipy community.
  • Last updated on Jun 10, 2017.
  • Created usingSphinx 1.5.3.

[8]ページ先頭

©2009-2025 Movatter.jp