|
54 | 54 | "zfill",
|
55 | 55 |
|
56 | 56 | # _vec_string - Will gradually become ufuncs as well
|
57 |
| - "mod", "decode", "encode", "upper", "lower", "swapcase", "capitalize", |
58 |
| - "title", "join", "split", "rsplit", "splitlines", "partition", |
59 |
| - "rpartition", "translate", |
| 57 | + "upper", "lower", "swapcase", "capitalize", "title", |
| 58 | + |
| 59 | + # _vec_string - Will probably not become ufuncs |
| 60 | + "mod", "decode", "encode", "translate", |
| 61 | + |
| 62 | + # Removed from namespace until behavior has been crystalized |
| 63 | + # "join", "split", "rsplit", "splitlines", "partition", "rpartition", |
60 | 64 | ]
|
61 | 65 |
|
62 | 66 |
|
@@ -1145,7 +1149,7 @@ def replace(a, old, new, count=-1):
|
1145 | 1149 | return _replace(arr, old, new, counts, out=out)
|
1146 | 1150 |
|
1147 | 1151 |
|
1148 |
| -def join(sep, seq): |
| 1152 | +def _join(sep, seq): |
1149 | 1153 | """
|
1150 | 1154 | Return a string which is the concatenation of the strings in the
|
1151 | 1155 | sequence `seq`.
|
@@ -1179,7 +1183,7 @@ def join(sep, seq):
|
1179 | 1183 | _vec_string(sep, np.object_, 'join', (seq,)), seq)
|
1180 | 1184 |
|
1181 | 1185 |
|
1182 |
| -def split(a, sep=None, maxsplit=None): |
| 1186 | +def _split(a, sep=None, maxsplit=None): |
1183 | 1187 | """
|
1184 | 1188 | For each element in `a`, return a list of the words in the
|
1185 | 1189 | string, using `sep` as the delimiter string.
|
@@ -1222,7 +1226,7 @@ def split(a, sep=None, maxsplit=None):
|
1222 | 1226 | a, np.object_, 'split', [sep] + _clean_args(maxsplit))
|
1223 | 1227 |
|
1224 | 1228 |
|
1225 |
| -def rsplit(a, sep=None, maxsplit=None): |
| 1229 | +def _rsplit(a, sep=None, maxsplit=None): |
1226 | 1230 | """
|
1227 | 1231 | For each element in `a`, return a list of the words in the
|
1228 | 1232 | string, using `sep` as the delimiter string.
|
@@ -1265,7 +1269,7 @@ def rsplit(a, sep=None, maxsplit=None):
|
1265 | 1269 | a, np.object_, 'rsplit', [sep] + _clean_args(maxsplit))
|
1266 | 1270 |
|
1267 | 1271 |
|
1268 |
| -def splitlines(a, keepends=None): |
| 1272 | +def _splitlines(a, keepends=None): |
1269 | 1273 | """
|
1270 | 1274 | For each element in `a`, return a list of the lines in the
|
1271 | 1275 | element, breaking at line boundaries.
|
@@ -1294,7 +1298,7 @@ def splitlines(a, keepends=None):
|
1294 | 1298 | a, np.object_, 'splitlines', _clean_args(keepends))
|
1295 | 1299 |
|
1296 | 1300 |
|
1297 |
| -def partition(a, sep): |
| 1301 | +def _partition(a, sep): |
1298 | 1302 | """
|
1299 | 1303 | Partition each element in `a` around `sep`.
|
1300 | 1304 |
|
@@ -1335,7 +1339,7 @@ def partition(a, sep):
|
1335 | 1339 | _vec_string(a, np.object_, 'partition', (sep,)), a)
|
1336 | 1340 |
|
1337 | 1341 |
|
1338 |
| -def rpartition(a, sep): |
| 1342 | +def _rpartition(a, sep): |
1339 | 1343 | """
|
1340 | 1344 | Partition (split) each element around the right-most separator.
|
1341 | 1345 |
|
|
0 commit comments