I have this array and require to create a dataframe based on that
getvalue.(W)
1-dimensional DenseAxisArray{Float64,1,...} with index sets:
Dimension 1, 0:6
And data, a 7-element Array{Float64,1}:
80.0
65.0
65.0
65.0
65.0
65.0
65.0
I get this error when trying
df=DataFrame(W=getvalue.(W)[1:6])
KeyError: key 1:6 not found
You need to do
collect
on theDenseAxisArray
.Recreating your data:
Putting the data to a DataFrame:
If your
vv
is big you might also save time and memory on collecting it with a slightly longer code (the result will be the same):