Skip to content
Snippets Groups Projects
Commit 732ee90f authored by Ruben Haag's avatar Ruben Haag
Browse files

Dataframe now also has types

parent 10cb7084
No related branches found
No related tags found
No related merge requests found
...@@ -44,29 +44,34 @@ model_quantitys = [ ...@@ -44,29 +44,34 @@ model_quantitys = [
#:quality #:quality
] ]
results = DataFrame()
results[:index] = Int[] ########## This is just, because the Data Frame constructor still needs unintuitive workarounds 😠
results[:dt_earliest_pickup] = Float64[] rows = [:index => Int[],
results[:weight] = Float64[] :dt_earliest_pickup => Float64[],
results[:resubmission_time_factor] = Float64[] :weight => Float64[],
results[:ν] = Float64[] :resubmission_time_factor => Float64[],
results[:request_type] = Any[] :ν => Float64[],
:request_type => Symbol[]
]
for quan in req_quantitys_mean for quan in req_quantitys_mean
results[quan] = Measurement[] push!(rows, quan => Measurement[])
end end
for quan in req_quantitys_sum for quan in req_quantitys_sum
results[quan] = Float64[] push!(rows, quan => Float64[])
end end
for quan in bus_quantitys for quan in bus_quantitys
results[quan] = Measurement[] push!(rows, quan => Measurement[])
end end
for quan in model_quantitys for quan in model_quantitys
results[quan] = Measurement[] push!(rows, quan> Measurement[])
end end
rows = NamedTuple(rows)
results = DataFrame(rows)
filenames = readdir(model_path, join=true) filenames = readdir(model_path, join=true)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment