NumPy char join

NumPy char join

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

This Post Has 2 Comments

Leave a Reply