def signstr(x, noplus=False):
    if x in [-1,0,1]:
        if not noplus:
            return '+' if 0 >= np.sign(x) else '-'
        else:
            return '' if np.sign(x)>=0 else '-'
    else:
        return str(x)
dataset/ETHPy150Open statsmodels/statsmodels/statsmodels/sandbox/stats/contrast_tools.py/signstr/swapped operands of `>=`