summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2022-09-18 21:26:49 -0500
committerGitHub <noreply@github.com>2022-09-18 21:26:49 -0500
commitbcb7962166ac8383ed844abc07cb8035feae0fed (patch)
tree6b9abdf418d36410906387f765aad0e434f9d12c
parentd6586b97a3b5d23832e729b098de0fa023246e9c (diff)
parentf6f98a3b0fb0db243449462e76355b523a443088 (diff)
downloadnumpy-bcb7962166ac8383ed844abc07cb8035feae0fed.tar.gz
Merge pull request #22295 from tahsinsoha/isupper
DOC: Added an example for isupper() function
-rw-r--r--numpy/core/defchararray.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/numpy/core/defchararray.py b/numpy/core/defchararray.py
index 620cc0a92..005d35640 100644
--- a/numpy/core/defchararray.py
+++ b/numpy/core/defchararray.py
@@ -948,6 +948,13 @@ def isupper(a):
See Also
--------
str.isupper
+
+ Examples
+ --------
+ >>> str = "GHC"
+ >>> np.char.isupper(str)
+ array(True)
+
"""
return _vec_string(a, bool_, 'isupper')