Mapping over a NumPy array applies a function to each element in the array. For example, mapping a function which doubles a number to [1, 2, 3] results in [2, 4, 6].
Solution for How to map over a NumPy array in Python : You can use an array as the parameter of a function to map over a NumPy array Use function(array) to apply function to each element in array.