def cut(y, score = None, groups = None):
    """Implement a Cutscore
    
    Implement a cutscore on a variable according to the numeric score set in score, or the string
    or list of strings specified in groups. 
    
    Parameters
    ----------
    y : pandas.Series
        The series containing the score upon which hiring decisions will
        be made. If the series is numeric, a cutscore must be specified. If the series is 
        categorical, a string or list of strings must be specified as the passing group(s).
    cutscore : numeric
        The cutscore to be used for deciding what is passing and what is failing. Any number 
        that is this number or greater will be considered a pass, anything less than that will
        be a fail. This must be specified if y indicates a numeric variable.
    groups : string or list of strings
        The groups that should be counted as passing. Any group that isn't specified here will
        be coded as a fail.
        
    Returns
    -------
    pandas.Series of Booleans with True denoting passing, and False denoting failing
    """
    if score is not None:
        return(y >= score)
    elif groups is not None:
        if isinstance(groups, str):
            groups = [groups]
        return(y.isin(groups))