Return (a % i), that is pre-Python 2.6 string formatting (iterpolation), element-wise for a pair of array_likes of str or unicode. Parameters ---------- a : array_like of str or unicode values : array_like of values These values will be element-wise interpolated
(a, values)
| 356 | |
| 357 | @array_function_dispatch(_mod_dispatcher) |
| 358 | def mod(a, values): |
| 359 | """ |
| 360 | Return (a % i), that is pre-Python 2.6 string formatting |
| 361 | (iterpolation), element-wise for a pair of array_likes of str |
| 362 | or unicode. |
| 363 | |
| 364 | Parameters |
| 365 | ---------- |
| 366 | a : array_like of str or unicode |
| 367 | |
| 368 | values : array_like of values |
| 369 | These values will be element-wise interpolated into the string. |
| 370 | |
| 371 | Returns |
| 372 | ------- |
| 373 | out : ndarray |
| 374 | Output array of str or unicode, depending on input types |
| 375 | |
| 376 | See also |
| 377 | -------- |
| 378 | str.__mod__ |
| 379 | |
| 380 | """ |
| 381 | return _to_string_or_unicode_array( |
| 382 | _vec_string(a, object_, '__mod__', (values,))) |
| 383 | |
| 384 | |
| 385 | @array_function_dispatch(_unary_op_dispatcher) |
no test coverage detected