numpy mean with comparison operator in the parameter,"array([True, True, True, False, False, False, False], dtype=bool)"