I need this functionality, but by using numpy arrays instead of python lists
my_list = ['f', 'o', 'o', 'b', 'a', 'r']
new_list = list()
for elem in my_list:
new_list.append(func(elem))
for loop consumes lot of time and cpu if the list becomes large. So I need this functionality with numpy array. Help out!