MCPcopy Index your code
hub / github.com/numpy/numpy / count

Method count

numpy/_core/defchararray.py:772–782  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

770 return asarray(center(self, width, fillchar))
771
772 def count(self, sub, start=0, end=None):
773 """
774 Returns an array with the number of non-overlapping occurrences of
775 substring `sub` in the range [`start`, `end`].
776
777 See Also
778 --------
779 char.count
780
781 """
782 return count(self, sub, start, end)
783
784 def decode(self, encoding=None, errors=None):
785 """

Callers 7

_parse_einsum_inputFunction · 0.45
test_countMethod · 0.45
get_data_variationMethod · 0.45
test_countMethod · 0.45
parse_structureFunction · 0.45
find_positionFunction · 0.45

Calls 1

countFunction · 0.85

Tested by 4

test_countMethod · 0.36
get_data_variationMethod · 0.36
test_countMethod · 0.36