def greater_than(given_array, threshold): ''' :param given_array: numpy array to be evaluated :param threshold: to compare each cell :return: array of boolean with true for cells greater than threshold ''' return given_array > threshold