Return true for each element if all cased characters in the string are uppercase and there is at least one character, false otherwise. Call `str.isupper` element-wise. For 8-bit strings, this method is locale-dependent. Parameters ---------- a : array_like of str
(a)
| 985 | |
| 986 | @array_function_dispatch(_unary_op_dispatcher) |
| 987 | def isupper(a): |
| 988 | """ |
| 989 | Return true for each element if all cased characters in the |
| 990 | string are uppercase and there is at least one character, false |
| 991 | otherwise. |
| 992 | |
| 993 | Call `str.isupper` element-wise. |
| 994 | |
| 995 | For 8-bit strings, this method is locale-dependent. |
| 996 | |
| 997 | Parameters |
| 998 | ---------- |
| 999 | a : array_like of str or unicode |
| 1000 | |
| 1001 | Returns |
| 1002 | ------- |
| 1003 | out : ndarray |
| 1004 | Output array of bools |
| 1005 | |
| 1006 | See Also |
| 1007 | -------- |
| 1008 | str.isupper |
| 1009 | |
| 1010 | Examples |
| 1011 | -------- |
| 1012 | >>> str = "GHC" |
| 1013 | >>> np.char.isupper(str) |
| 1014 | array(True) |
| 1015 | >>> a = np.array(["hello", "HELLO", "Hello"]) |
| 1016 | >>> np.char.isupper(a) |
| 1017 | array([False, True, False]) |
| 1018 | |
| 1019 | """ |
| 1020 | return _vec_string(a, bool_, 'isupper') |
| 1021 | |
| 1022 | |
| 1023 | def _join_dispatcher(sep, seq): |