summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBas van Beek <b.f.van.beek@vu.nl>2020-08-09 21:28:34 +0200
committerBas van Beek <b.f.van.beek@vu.nl>2020-08-09 21:28:34 +0200
commitbcc21aa9189eb8b0d887966afd98cc75d7208fa4 (patch)
tree15669aadb44e646962be6598ee0a2a497faafbc0
parent961b56fb58ee6482cffdce6f61cb679eba654daf (diff)
downloadnumpy-bcc21aa9189eb8b0d887966afd98cc75d7208fa4.tar.gz
DOC: Clarify that `np.char.compare_chararrays` returns an `ndarray`
-rw-r--r--numpy/core/defchararray.py24
1 files changed, 12 insertions, 12 deletions
diff --git a/numpy/core/defchararray.py b/numpy/core/defchararray.py
index 1d447b86a..9d7b54a1a 100644
--- a/numpy/core/defchararray.py
+++ b/numpy/core/defchararray.py
@@ -114,8 +114,8 @@ def equal(x1, x2):
Returns
-------
- out : ndarray or bool
- Output array of bools, or a single bool if x1 and x2 are scalars.
+ out : ndarray
+ Output array of bools.
See Also
--------
@@ -140,8 +140,8 @@ def not_equal(x1, x2):
Returns
-------
- out : ndarray or bool
- Output array of bools, or a single bool if x1 and x2 are scalars.
+ out : ndarray
+ Output array of bools.
See Also
--------
@@ -167,8 +167,8 @@ def greater_equal(x1, x2):
Returns
-------
- out : ndarray or bool
- Output array of bools, or a single bool if x1 and x2 are scalars.
+ out : ndarray
+ Output array of bools.
See Also
--------
@@ -193,8 +193,8 @@ def less_equal(x1, x2):
Returns
-------
- out : ndarray or bool
- Output array of bools, or a single bool if x1 and x2 are scalars.
+ out : ndarray
+ Output array of bools.
See Also
--------
@@ -219,8 +219,8 @@ def greater(x1, x2):
Returns
-------
- out : ndarray or bool
- Output array of bools, or a single bool if x1 and x2 are scalars.
+ out : ndarray
+ Output array of bools.
See Also
--------
@@ -245,8 +245,8 @@ def less(x1, x2):
Returns
-------
- out : ndarray or bool
- Output array of bools, or a single bool if x1 and x2 are scalars.
+ out : ndarray
+ Output array of bools.
See Also
--------