Skip to content

Commit e92e388

Browse files
committed
DOC: add char.isalpha example
1 parent 977a765 commit e92e388

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

numpy/_core/code_generators/ufunc_docstrings.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4373,6 +4373,17 @@ def add_newdoc(place, name, doc):
43734373
--------
43744374
str.isalpha
43754375
4376+
Examples
4377+
--------
4378+
>>> np.char.isalpha(["yes", "alpha"])
4379+
array([ True, True])
4380+
>>> np.char.isalpha(["not", "\x00", "alpha"])
4381+
array([ True, False, True])
4382+
>>> np.char.isalpha(["n0t", "4lpha"])
4383+
array([ False, False])
4384+
>>> np.char.isalpha(bytes([0x61, 0x6c, 0x70, 0x68, 0x61]))
4385+
np.True_
4386+
43764387
""")
43774388

43784389
add_newdoc('numpy._core.umath', 'isdigit',

0 commit comments

Comments
 (0)