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

Method startswith

numpy/core/defchararray.py:2618–2628  ·  view source on GitHub ↗

Returns a boolean array which is `True` where the string element in `self` starts with `prefix`, otherwise `False`. See Also -------- char.startswith

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

Source from the content-addressed store, hash-verified

2616 return splitlines(self, keepends)
2617
2618 def startswith(self, prefix, start=0, end=None):
2619 """
2620 Returns a boolean array which is `True` where the string element
2621 in `self` starts with `prefix`, otherwise `False`.
2622
2623 See Also
2624 --------
2625 char.startswith
2626
2627 """
2628 return startswith(self, prefix, start, end)
2629
2630 def strip(self, chars=None):
2631 """

Callers 15

mainFunction · 0.80
check_submodulesFunction · 0.80
visit_ClassDefMethod · 0.80
find_missingFunction · 0.80
get_all_dictFunction · 0.80
check_outputMethod · 0.80
check_doctests_testfileFunction · 0.80
mainFunction · 0.80
normpathFunction · 0.80
get_membersFunction · 0.80
parse_exprFunction · 0.80
parse_one_condFunction · 0.80

Calls 1

startswithFunction · 0.85

Tested by 15

mainFunction · 0.64
test_reprMethod · 0.64
test_instance_methodsMethod · 0.64
get_cpuinfo_itemMethod · 0.64
load_flags_auxvMethod · 0.64
test_startswithMethod · 0.64
test_startswithMethod · 0.64
failMethod · 0.64
test_centerMethod · 0.64
test_ljustMethod · 0.64