Apply Lambda Function To Numpy Array