MCPcopy Create free account
hub / github.com/numpy/numpy / count

Method count

numpy/core/defchararray.py:2283–2293  ·  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

2281 return asarray(center(self, width, fillchar))
2282
2283 def count(self, sub, start=0, end=None):
2284 """
2285 Returns an array with the number of non-overlapping occurrences of
2286 substring `sub` in the range [`start`, `end`].
2287
2288 See Also
2289 --------
2290 char.count
2291
2292 """
2293 return count(self, sub, start, end)
2294
2295 def decode(self, encoding=None, errors=None):
2296 """

Callers 5

_can_dotFunction · 0.45
_parse_einsum_inputFunction · 0.45
test_countMethod · 0.45
get_data_variationMethod · 0.45
test_smallMethod · 0.45

Calls 1

countFunction · 0.85

Tested by 3

test_countMethod · 0.36
get_data_variationMethod · 0.36
test_smallMethod · 0.36