I imported a
xlsx file to an array
XLSX.jl. But now I have no real names for the fields in
df and the types are all
I changed names using
rename! but I don’t know how to change types respectively to
Float64. Is it possible to import a vector of element types?
Is there a better method to go from
xlsx to a
DataFrame importing the row heading and types?
using DataFrames # using an array a = ["a" 2 4.2; "b" 5 6.7; "c" 3 8.9] df = DataFrame(a) # How to change names and types of DataFrame? vec_of_names = ["name", "2004", "2020"] rename!(df, vec_of_your_new_names)