def lcumsum (inlist):
    newlist = copy.deepcopy(inlist)
    for i in range(1,len(newlist)):
        newlist[i] = newlist[i] + newlist[i-1]
    return newlist
expand a 2 by 2 contingency table to observations
dataset/ETHPy150Open radlab/sparrow/src/main/python/third_party/stats.py/lcumsum--crossover with--dataset/ETHPy150Open statsmodels/statsmodels/statsmodels/stats/tests/test_nonparametric.py/_expand_table