I don't understand this result.
import CSV
julia> open("tmp.csv", write=true) do io
println(io, "# comment 1")
println(io, "# comment 2")
CSV.write(io, [(;a=1, b=2), (;a=10, b=20)])
end
IOStream(<file tmp.csv>)
julia> println(read("tmp.csv", String))
a,b
1,2
10,20
comment 2
With append=true
I'd expect
# comment 1
# comment 2
1,2
10,20
and with append=false
(the default) I'd expect