LoadError: ArgumentError: syntax df[column] is not supported use df[!, column] instead

I think the error message says it all: You are trying to access a column of a DataFrame.
The syntax df.A works, but the syntax df[:A] does not.
So you need to replace
df_betas_duels[idx]["mean"] with df_beta_duels[idx, "mean"] where
idx = df_beta_duels[!, :id] .== string(item1).

PS: A MWE would have been helpful. I might misunderstand the structure of your data.

1 Like