

def resize2():
    from collections import defaultdict
    buf = defaultdict(dict)
    for col in df.columns:
        for row in df.index:
            buf[col][row] = 5.0
    return DataFrame(buf)

dataset/ETHPy150Open pydata/pandas/bench/bench_get_put_value.py resize2/original