When i=1, both println(typeof("$i")) and println(typeof(:($("$i")))) give String, and both println("$i") and println(:($("$i"))) give 1. However, the following code
using DataFrames
df = DataFrame()
i = 1
df.:($("$i")) = [0.0]
println(df)
works, but the following code
using DataFrames
df = DataFrame()
i = 1
df."$i" = [0.0]
println(df)
does not work. What is wrong with the latter code?