chevron_left
Char
Method addMethod capitalizeMethod centerMethod countMethod endswithMethod equalMethod expandtabsMethod findMethod greaterMethod greater_equalMethod indexMethod isalnumMethod isalphaMethod isdecimalMethod isdigitMethod isnumericMethod isupperMethod joinMethod lessMethod less_equalMethod ljustMethod lowerMethod multiplyMethod not_equalMethod rfindMethod rjustMethod rstripMethod splitMethod splitlinesMethod startswithMethod upperMethod zfill
check_circle
Mark as learned thumb_up
0
thumb_down
0
chat_bubble_outline
0
auto_stories new
settings
NumPy char | greater_equal method
NumPy
chevron_rightDocumentation
chevron_rightChar
schedule Jul 1, 2022
Last updated local_offer Python●NumPy
Tags tocTable of Contents
expand_more Check out the interactive map of data science
NumPy's np.char.greater_equal(~)
method takes as input two arrays of strings, and then performs a pair-wise string comparison to output a NumPy array of booleans.
Parameters
1. x1
| array-like
The first input array.
2. x2
| array-like
The second input array.
Return Value
A NumPy array of booleans.
Examples
np.char.greater_equal(["a", "d", "e"], ["b", "c", "e"])
array([False, True, True])
Here, we are performing the following comparisons:
"a"
>="b"
(False)"d"
>="c"
(True)"e"
>="e"
(True)
Published by Isshin Inada
Edited by 0 others
Did you find this page useful?
thumb_up
thumb_down
Ask a question or leave a feedback...
thumb_up
0
thumb_down
0
chat_bubble_outline
0
settings
Enjoy our search
Hit / to insta-search docs and recipes!