At times, we might need to work with Julia Arrays instead of columns in a DataFrame. For this purpose, we have the convert() function:
julia> my_small_array = convert(Array , my_small_df[:Col01]);
julia> my_small_array
10-element Array{Int64,1}:
1
2
3
4
5
6
7
8
9
10
julia>
julia> my_small_array = convert(Array , my_small_df[:Col01]);
julia> my_small_array
10-element Array{Int64,1}:
1
2
3
4
5
6
7
8
9
10
julia>
No comments:
Post a Comment