CSV.jl
CSV.jl copied to clipboard
writeheader=true ineffective in combination with header=
ofile = open("mycsv.csv", "w")
# various regular writes to ofile
# clus a DataFrame
CSV.write(ofile, clus, header=["truez", "id", "sumY", "zhat"], append=true, writeheader=true )
close(ofile)
Did not write any headers to the file. Deleting the header= argument and using
rename!(clus, ["truez", "id", "sumY", "zhat"] did result in the headers being written to the file.
CSV v0.10.9 Julia Version 1.8.5 Commit 17cfb8e65e (2023-01-08 06:45 UTC) Platform Info: OS: Windows (x86_64-w64-mingw32) CPU: 20 × Intel(R) Xeon(R) CPU E5-2690 v4 @ 2.60GHz WORD_SIZE: 64 LIBM: libopenlibm LLVM: libLLVM-13.0.1 (ORCJIT, broadwell) Threads: 16 on 20 virtual cores Environment: JULIA_EDITOR = code JULIA_NUM_THREADS =