Question about loop?

I would make a list or a dictionary

ps = []
for i in 1:10
    data = @where(df, :Firm .== i)
    push!(ps, (@df data plot(:Year, :Inv))
end

then you can use

ps[1]

to access the plots

2 Likes