JuliaDB - Saving to CSV

This also works:

open("test.csv","w") do fid
    println(fid,join(colnames(t),','))
    for i in collect(t)
        println(fid,join(i,','))
    end
end

julia> t = table(rand(100000),rand(100000),names= [:x,:y],chunks=1);

julia> @time open("text.csv","w") do fid
       println(fid,join(colnames(t),','))
       for i in collect(t)
       println(fid,join(i,','))
       end
       end
  0.198821 seconds (1.60 M allocations: 58.118 MiB, 10.27% gc time)
1 Like