numpy.char.join#
- char.join(sep, seq)[source]#
Return a string which is the concatenation of the strings in the sequence seq.
Calls str.join element-wise.
- Parameters:
- separray_like of str or unicode
- seqarray_like of str or unicode
- Returns:
- outndarray
Output array of str or unicode, depending on input types
See also
Examples
>>> np.char.join('-', 'osd') array('o-s-d', dtype='<U5')
>>> np.char.join(['-', '.'], ['ghc', 'osd']) array(['g-h-c', 'o.s.d'], dtype='<U5')