Apologies for the repeat of old question, but most of the posts on this question seem to give outdated/nonfunctional solutions for defining or updating the column names of a DataFrame.
DataFrame(datamat,names)
or
names!(df,names)
rename!(df, names)
Aren’t working for me anymore.
I’ll keep searching, but what is the best approach?
Thanks in advance
PS In above ‘names is a vector of Symbols’. The statement worked in previous versions. Now I get the error
MethodError: no method matching rename!(::DataFrame, ::Array{Any,1})
OK. Thanks. It seems that some of the column names weren’t Symbols and the previous version of DataFrames automatically converted them, the current one doesn’t.
Thanks Alot!