def to_dict(l):
    return dict(zip(map(str, range(len(l))), l))
Convert a list to a dict with keys drawn from '0', '1', '2', ...
dataset/ETHPy150Open quantopian/zipline/tests/pipeline/test_term.py/to_dict