import numpy as np
x = np.array(['Python PHP Java C++'], dtype=np.str)
print("Original Array:")
print(x)
r = np.char.split(x)
print("\nSplit the element of the said array with spaces: ")
print(r)
Sample Input:
(['Python PHP Java C++'], dtype=np.str)
Sample Output:
Original Array:
['Python PHP Java C++']
Split the element of the said array with spaces:
[list(['Python', 'PHP', 'Java', 'C++'])]
Sample Input:
Sample Output:
need an explanation for this answer? contact us directly to get an explanation for this answer