I'm new user of Julia. I try to create one code for an start up.
begin
using Pkg
Pkg.add("CSV")
Pkg.add("DataFrames")
using Statistics
using DataFrames
using CSV
using Dates
v=[1:12]
resultat=CSV.File("ResultatPropre.csv";header=true; delim=";")
println(resultat)
i=1
while i <= 12
a=now() ##Dates.millisecond
dt = CSV.read(resultat[i,1]*"_"*resultat[i,2]*"_"*resultat[i,3]*"_"*resultat[i,4]*"_1.csv")
x=resultat[i,6]
moy="MOYENNE"
if x==moy
for c in eachcol(dt)
println(mean(dt[:c]))
end
else
for c in eachcol(dt)
println(median(dt[:c]))
end
end
v[i]=now()-a
close(dt)
i = i + 1
end
CSV.write("OUT1.csv", DataFrame(hcat(resultat,v)), writeheader=false)
close(resultat)
end
I don't know if this code is correct but i haven't error message. The document OUT1.CSV is empty. Why?
Sorry if you can't understand I'm not fluent in english. Thank you.