def _calculate_quasip(x, y, box, Hbox, Tbox):
    '\n\n    Parameters\n    ----------\n    x : DataFrame\n    y : np.array\n    box : DataFrame\n    Hbox : int\n    Tbox : int\n\n    '
    logical = _in_box(x, box)
    yi = y[logical]
    Tj = yi.shape[0]
    Hj = np.sum(yi)
    p = (Hj / Tj)
    Hbox = int(Hbox)
    Tbox = int(Tbox)
    qp = sp.stats.binom_test(Hbox, Tbox, p, alternative='greater')
    return qp
Parameters
----------
x : DataFrame
y : np.array
box : DataFrame
Hbox : int
Tbox : int
def _calculate_quasip(x, y, box, Hbox, Tbox):
    '\n\n    Parameters\n    ----------\n    x : DataFrame\n    y : np.array\n    box : DataFrame\n    Hbox : int\n    Tbox : int\n\n    '
    logical = _in_box(x, box)
    yi = y[logical]
    Tj = yi.shape[0]
    Hj = np.sum(yi)
    p = (Hj / Tj)
    Hbox = int(Hbox)
    Tbox = int(Tbox)
    qp = sp.stats.binom_test(Hbox, Tbox, p, alternative='greater')
    return qp