Skip to content

Instantly share code, notes, and snippets.

@guidocaru
guidocaru / benchmark.py
Created January 15, 2025 05:51
Methods to grow a DataFrame
from methods import list_of_dicts, concat, loc_without_alloc, loc_with_alloc
import time
num_rows = 1000
# List of dicts
start_time = time.perf_counter()
list_of_dicts(num_rows)
end_time = time.perf_counter()