using InMemoryDatasets
function demo_data()
n = 100000
time = 0.1:0.1:n*0.1
d1 = rand(Int8(11):Int8(40), n)
d2 = 21:n + 20
d3 = rand(Int8(31):Int8(60), n)
ds = Dataset(time=time, d1=d1, d2=d2, d3=d3)
ds.d1[5] = missing
ds
end
demo_data()
@time ds=demo_data()
This looks quite nice… Only 2 to 8 ms instead of 5s! ![]()
So a for loop is not always a good idea…