How to create an empty dataframe from a vector of row names and column names

DataFrames don’t index columns by strings, but rather by Symbols. There’s no super deep reason why it is that way other than that Symbols are more lightweight than strings and have some nice features.

Using a Symbol, for example, makes it easier for df.a to refer to column :a.

2 Likes