for x in range(int(loop_size)):
    res.append((x - 1, x, x + 1))
return pd.DataFrame(res, columns=['a', 'b', 'c'])

def with_dict(loop_size=100000.0):
    res = []
for x in range(int(loop_size)):
    res.append({'a': x - 1, 'b': x, 'c': x + 1})
return pd.DataFrame(res)
How to build and fill pandas dataframe from for loop?