def compose(*funcs):
    assert len(funcs) > 1, 'At least 2 callables must be passed to compose'
    return reduce(_compose2, funcs)
Compose 2 or more callables
dataset/ETHPy150Open pydata/pandas/pandas/tools/util.py/compose