Skip to content

Commit 563a98e

Browse files
committed
DOC: add char.isspace example
1 parent e92e388 commit 563a98e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

numpy/_core/code_generators/ufunc_docstrings.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4450,6 +4450,15 @@ def add_newdoc(place, name, doc):
44504450
--------
44514451
str.isspace
44524452
4453+
Examples
4454+
--------
4455+
>>> np.char.isspace(list("a b c"))
4456+
array([False, True, False, True, False])
4457+
>>> np.char.isspace(b'\x0a \x0b \x0c')
4458+
np.True_
4459+
>>> np.char.isspace(b'\x0a \x0b \x0c N')
4460+
np.False_
4461+
44534462
""")
44544463

44554464
add_newdoc('numpy._core.umath', 'isalnum',

0 commit comments

Comments
 (0)