(model_expression)
Get only the right-hand side of a patsy model expression.

    Parameters
    ----------
    model_expression : str

    Returns
    -------
    rhs : str
Get only the right-hand side of a patsy model expression.
Get only the right - hand side of a patsy model expression .
def _rhs(model_expression):
    """
    Get only the right-hand side of a patsy model expression.

    Parameters
    ----------
    model_expression : str

    Returns
    -------
    rhs : str

    """
    if '~' not in model_expression:
        return model_expression
    else:
        return model_expression.split('~')[1].strip()
def _rhs ( model_expression ) : if '~' not in model_expression : return model_expression else : return model_expression . split ( '~' ) [ 1 ] . strip ( )