Create variables in a loop

@Skoffer thank you, this is great!
Right now the data is in dict[:y].
Is it possible to create the variable y=d.df[:,4] directly inside the loop?