I want to generate an empty array of dataframes that will be filled later in the code, but I have not figured out how to do it. Any help would be appreciated!
I have tried a standard way of defining an empty array.
julia> df = Array{DataFrame}(undef,10)
10-element Array{DataFrame,1}:
#undef
#undef
#undef
#undef
#undef
#undef
#undef
#undef
#undef
#undef
julia> println(typeof(df[1]))
ERROR: UndefRefError: access to undefined reference
Stacktrace:
[1] getindex(::Array{DataFrame,1}, ::Int64) at ./array.jl:729
[2] top-level scope at none:0
I'd expected typeof(df[1]) to say DataFrame, but it fails with an error message.