From 4963402f922e3eea347d6165ec0fe7b386663704 Mon Sep 17 00:00:00 2001 From: Sabiha Tahsin Soha Date: Fri, 16 Sep 2022 19:57:09 +0000 Subject: Added an example for isupper() function --- numpy/core/defchararray.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'numpy/core/defchararray.py') diff --git a/numpy/core/defchararray.py b/numpy/core/defchararray.py index fdda44e56..eafa4c4da 100644 --- a/numpy/core/defchararray.py +++ b/numpy/core/defchararray.py @@ -942,6 +942,14 @@ def isupper(a): See Also -------- str.isupper + + Examples + -------- + >>> import numpy as np + >>> str="GHC" + >>> np.char.isupper(str) + array(True) + """ return _vec_string(a, bool_, 'isupper') -- cgit v1.2.1