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

**URL:** https://discourse.julialang.org/t/loaderror-argumenterror-syntax-df-column-is-not-supported-use-df-column-instead/59235
**Category:** General Usage
**Tags:** dataframes
**Created:** [April 13, 2021, 9:42pm UTC](https://discourse.julialang.org/t/loaderror-argumenterror-syntax-df-column-is-not-supported-use-df-column-instead/59235 "2021-04-13T21:42:18Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![hendri54](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/hendri54/32/9621_2.png) [@hendri54](https://discourse.julialang.org/u/hendri54)
#### Post date: [April 14, 2021, 12:23pm UTC](https://discourse.julialang.org/t/loaderror-argumenterror-syntax-df-column-is-not-supported-use-df-column-instead/59235/2 "2021-04-14T12:23:43Z")

</div>

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.

---

_[View the full topic](https://discourse.julialang.org/t/loaderror-argumenterror-syntax-df-column-is-not-supported-use-df-column-instead/59235)._
