summaryrefslogtreecommitdiff
path: root/numpy/core/defchararray.py
diff options
context:
space:
mode:
authorSabiha Tahsin Soha <soha97368@gmail.com>2022-09-16 19:57:09 +0000
committerSabiha Tahsin Soha <soha97368@gmail.com>2022-09-16 20:21:45 +0000
commit4963402f922e3eea347d6165ec0fe7b386663704 (patch)
tree0698d44d7370b7cfd993b2cb7248122d8a6f4b8e /numpy/core/defchararray.py
parent5f94eb858f3e181eccfda2c26db9f0b9167a8156 (diff)
downloadnumpy-4963402f922e3eea347d6165ec0fe7b386663704.tar.gz
Added an example for isupper() function
Diffstat (limited to 'numpy/core/defchararray.py')
-rw-r--r--numpy/core/defchararray.py8
1 files changed, 8 insertions, 0 deletions
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')