From a6146e10e1cf92506a926fdccea1cab7b0c07096 Mon Sep 17 00:00:00 2001 From: CJ Carey Date: Fri, 17 Mar 2017 16:40:04 -0400 Subject: DOC: fix minor docstring typos --- numpy/core/defchararray.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'numpy/core/defchararray.py') diff --git a/numpy/core/defchararray.py b/numpy/core/defchararray.py index a11b343cb..e5f685369 100644 --- a/numpy/core/defchararray.py +++ b/numpy/core/defchararray.py @@ -1289,7 +1289,7 @@ def split(a, sep=None, maxsplit=None): For each element in `a`, return a list of the words in the string, using `sep` as the delimiter string. - Calls `str.rsplit` element-wise. + Calls `str.split` element-wise. Parameters ---------- @@ -1383,7 +1383,7 @@ def strip(a, chars=None): For each element in `a`, return a copy with the leading and trailing characters removed. - Calls `str.rstrip` element-wise. + Calls `str.strip` element-wise. Parameters ---------- -- cgit v1.2.1 From ac6b1a902b99e340cf7eeeeb7392c91e38db9dd8 Mon Sep 17 00:00:00 2001 From: Eric Wieser Date: Mon, 13 Nov 2017 23:45:45 -0800 Subject: ENH: don't show boolean dtype, as it is implied --- numpy/core/defchararray.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'numpy/core/defchararray.py') diff --git a/numpy/core/defchararray.py b/numpy/core/defchararray.py index e5f685369..6d0a0add5 100644 --- a/numpy/core/defchararray.py +++ b/numpy/core/defchararray.py @@ -575,9 +575,9 @@ def endswith(a, suffix, start=0, end=None): array(['foo', 'bar'], dtype='|S3') >>> np.char.endswith(s, 'ar') - array([False, True], dtype=bool) + array([False, True]) >>> np.char.endswith(s, 'a', start=1, end=2) - array([False, True], dtype=bool) + array([False, True]) """ return _vec_string( -- cgit v1.2.1