I often need to populate a
DataFrame sequentially, one iteration at a time. I therefore end up initiating a
DataFrame with mock data but with the correct types, deleting that first row, and then iterating through the real data I want to populate it with.
It looks like this:
df = DataFrame(place = "", quantity = 0, when = Date(0)) deleterows!(df, 1) for i in 1:n # <do things> push!(df, (p, q, w)) end
This works, but I wonder if there is a better way to do this…