def powerset(values):
    return concat(combinations(values, i) for i in range(len(values) + 1))
Return the power set (i.e., the set of all subsets) of entries in `values`.
dataset/ETHPy150Open quantopian/zipline/zipline/testing/core.py/powerset