In this chapter, we will discuss about NumPy char join. This method returns a string in which the individual characters are joined by separator character specified.
import numpy as np print np.char.join(':','dmy') print np.char.join([':','-'],['dmy','ymd'])
Its output is as follows −
d:m:y ['d:m:y' 'y-m-d']
Next Topic – Click Here
Pingback: NumPy char strip - Adglob Infosystem Pvt Ltd ........
Pingback: NumPy String Functions - Adglob Infosystem Pvt Ltd