Get the p-value from the confidence interval.

def get_pvalue(value, ci):
    """ Get the p-value from the confidence interval."""
    from scipy.stats import norm
    se = (ci[1] - ci[0]) / (2.0 * 1.96)
    z = value / se
    pvalue = -2 * norm.cdf(-np.abs(z))
    return pvalue