How can I convert an array of tuples (NOT named tuples) into a DataFrame?
Code to create an array of named tuples:
parking_sections = []
for i in 1:10
push!(parking_sections, (i, rand(1)[1]))
end
How can I convert an array of tuples (NOT named tuples) into a DataFrame?
Code to create an array of named tuples:
parking_sections = []
for i in 1:10
push!(parking_sections, (i, rand(1)[1]))
end
So easy:
using DataFrames
parking_sections = []
for i in 1:10
push!(parking_sections, (i, rand(1)[1]))
end
DataFrame(parking_sections, [:a, :b])