You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 =
The text was updated successfully, but these errors were encountered:
The csv file has the outputs.
Found a bug in the CSV package: CSV.write() outputs no headers if
CSV.write(ofile, clus, headers=["truez", "id", "sumY", "zhat"], append=true, writeheader=true )
hence the use of rename! in the code.
Filed bug JuliaData/CSV.jl#1085 (comment)
Did not write any headers to the file. Deleting the
header=
argument and usingrename!(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 =
The text was updated successfully, but these errors were encountered: