This is a pre-release version (2.5.0.dev0+git20251130.2de293a).Go to latest (2.4.4)
{ } Raw JSON

bundles / numpy 2.5.0.dev0+git20251130.2de293a / numpy / _core / defchararray / chararray / count

function

numpy._core.defchararray:chararray.count

source: build-install/usr/lib/python3.14/site-packages/numpy/_core/defchararray.py:765

Signature

def count(self, sub, start = 0, end = None)

Summary

Returns an array with the number of non-overlapping occurrences of substring sub in the range [start, end].

See also

char.count

Aliases

  • numpy.char.chararray.count