@@ -1172,11 +1172,11 @@ def _join(sep, seq):
1172
1172
1173
1173
Examples
1174
1174
--------
1175
- >>> np.strings.join('-', 'osd')
1176
- array('o-s-d', dtype='<U5')
1175
+ >>> np.strings.join('-', 'osd') # doctest: +SKIP
1176
+ array('o-s-d', dtype='<U5') # doctest: +SKIP
1177
1177
1178
- >>> np.strings.join(['-', '.'], ['ghc', 'osd'])
1179
- array(['g-h-c', 'o.s.d'], dtype='<U5')
1178
+ >>> np.strings.join(['-', '.'], ['ghc', 'osd']) # doctest: +SKIP
1179
+ array(['g-h-c', 'o.s.d'], dtype='<U5') # doctest: +SKIP
1180
1180
1181
1181
"""
1182
1182
return _to_bytes_or_str_array (
@@ -1209,11 +1209,11 @@ def _split(a, sep=None, maxsplit=None):
1209
1209
Examples
1210
1210
--------
1211
1211
>>> x = np.array("Numpy is nice!")
1212
- >>> np.strings.split(x, " ")
1213
- array(list(['Numpy', 'is', 'nice!']), dtype=object)
1212
+ >>> np.strings.split(x, " ") # doctest: +SKIP
1213
+ array(list(['Numpy', 'is', 'nice!']), dtype=object) # doctest: +SKIP
1214
1214
1215
- >>> np.strings.split(x, " ", 1)
1216
- array(list(['Numpy', 'is nice!']), dtype=object)
1215
+ >>> np.strings.split(x, " ", 1) # doctest: +SKIP
1216
+ array(list(['Numpy', 'is nice!']), dtype=object) # doctest: +SKIP
1217
1217
1218
1218
See Also
1219
1219
--------
@@ -1259,8 +1259,9 @@ def _rsplit(a, sep=None, maxsplit=None):
1259
1259
Examples
1260
1260
--------
1261
1261
>>> a = np.array(['aAaAaA', 'abBABba'])
1262
- >>> np.strings.rsplit(a, 'A')
1263
- array([list(['a', 'a', 'a', '']), list(['abB', 'Bba'])], dtype=object)
1262
+ >>> np.strings.rsplit(a, 'A') # doctest: +SKIP
1263
+ array([list(['a', 'a', 'a', '']), # doctest: +SKIP
1264
+ list(['abB', 'Bba'])], dtype=object) # doctest: +SKIP
1264
1265
1265
1266
"""
1266
1267
# This will return an array of lists of different sizes, so we
@@ -1327,8 +1328,8 @@ def _partition(a, sep):
1327
1328
Examples
1328
1329
--------
1329
1330
>>> x = np.array(["Numpy is nice!"])
1330
- >>> np.strings.partition(x, " ")
1331
- array([['Numpy', ' ', 'is nice!']], dtype='<U8')
1331
+ >>> np.strings.partition(x, " ") # doctest: +SKIP
1332
+ array([['Numpy', ' ', 'is nice!']], dtype='<U8') # doctest: +SKIP
1332
1333
1333
1334
See Also
1334
1335
--------
@@ -1372,10 +1373,10 @@ def _rpartition(a, sep):
1372
1373
Examples
1373
1374
--------
1374
1375
>>> a = np.array(['aAaAaA', ' aA ', 'abBABba'])
1375
- >>> np.strings.rpartition(a, 'A')
1376
- array([['aAaAa', 'A', ''],
1377
- [' a', 'A', ' '],
1378
- ['abB', 'A', 'Bba']], dtype='<U5')
1376
+ >>> np.strings.rpartition(a, 'A') # doctest: +SKIP
1377
+ array([['aAaAa', 'A', ''], # doctest: +SKIP
1378
+ [' a', 'A', ' '], # doctest: +SKIP
1379
+ ['abB', 'A', 'Bba']], dtype='<U5') # doctest: +SKIP
1379
1380
1380
1381
"""
1381
1382
return _to_bytes_or_str_array (
0 commit comments