Julia DataFrame column names

Viewed 2216

I want to name the column names of blank DataFrame.

I am having trouble (re)naming multiple columns of a DataFrame in v0.6.

I've tried generating names:

df = DataFrame()
nms = [":x$i" for i in 1:2]
df[nms[1] = rand(10)]
df[nms[2] = rand(10)]

but the symbol requirement for names is not working with the $ macro. Does anyone have a fix?

1 Answers
Related