def get_sig(pval):
    """Returns asterisk depending on the magnitude of significance"""
    if pval < 0.001:
        sig = '***'
    elif pval < 0.01:
        sig = '**'
    elif pval < 0.05:
        sig = '*'
    else:
        sig = 'ns'  # non-significant
    return sig