I have a bunch of DataFrameRow in a Dict that I want to convert to a DataFrame
julia> RSM_df[:RSM_77]
13-element Vector{Any}:
DataFrameRow
Row │ datetime RSM_Date_IV RSM_Exp_Flux RSM_Exp_FluxCV ⋯
│ DateTime DateTime Float64 Float64 ⋯
─────┼──────────────────────────────────────────────────────────────────────────
1 │ 2020-04-20T12:00:00 2020-04-20T12:21:54 1.66 1.2 ⋯
1 column omitted
DataFrameRow
Row │ datetime RSM_Date_IV RSM_Exp_Flux RSM_Exp_FluxCV ⋯
│ DateTime DateTime Float64 Float64 ⋯
─────┼──────────────────────────────────────────────────────────────────────────
1 │ 2020-05-06T13:00:00 2020-05-06T13:02:05 2.11 1.2 ⋯
1 column omitted
this works for a few:
julia> vcat(DataFrame(RSM_df[:RSM_77][1]), DataFrame(RSM_df[:RSM_77][2]))
2×5 DataFrame
Row │ datetime RSM_Date_IV RSM_Exp_Flux RSM_Exp_FluxCV RSM_Exp_R2
│ DateTime DateTime Float64 Float64 Float64
─────┼────────────────────────────────────────────────────────────────────────────────────
1 │ 2020-04-20T12:00:00 2020-04-20T12:21:54 1.66 1.2 0.9975
2 │ 2020-05-06T13:00:00 2020-05-06T13:02:05 2.11 1.2 0.9985
and this works to converts all DataFrameRow to DataFrame:
julia> DataFrame.(RSM_df[:RSM_77])
13-element Vector{DataFrame}:
1×5 DataFrame
Row │ datetime RSM_Date_IV RSM_Exp_Flux RSM_Exp_FluxCV ⋯
│ DateTime DateTime Float64 Float64 ⋯
─────┼──────────────────────────────────────────────────────────────────────────
1 │ 2020-04-20T12:00:00 2020-04-20T12:21:54 1.66 1.2 ⋯
1 column omitted
1×5 DataFrame
Row │ datetime RSM_Date_IV RSM_Exp_Flux RSM_Exp_FluxCV ⋯
│ DateTime DateTime Float64 Float64 ⋯
─────┼──────────────────────────────────────────────────────────────────────────
1 │ 2020-05-06T13:00:00 2020-05-06T13:02:05 2.11 1.2 ⋯
1 column omitted
However I don’t know how to vcat them all, neither vcat.(DataFrame.(RSM_df[:RSM_77]))
nor vcat(DataFrame.(RSM_df[:RSM_77]))
works.
how can I do it?