def pvalue_symbol(pv=None, symbol=None): if 0.05 >= pv > 0.01: return symbol elif 0.01 >= pv > 0.001: return 2 * symbol elif pv <= 0.001: return 3 * symbol else: return None