Closed korenmiklos closed 1 week ago
It's a set of parantheses!
julia> select(df, [:x] => x -> x.^2 => :y)
5×1 DataFrame
Row │ x_function
│ Pair…
─────┼───────────────────────
1 │ [1, 4, 9, 16, 25]=>:y
2 │ [1, 4, 9, 16, 25]=>:y
3 │ [1, 4, 9, 16, 25]=>:y
4 │ [1, 4, 9, 16, 25]=>:y
5 │ [1, 4, 9, 16, 25]=>:y
julia> select(df, [:x] => (x -> x.^2) => :y)
5×1 DataFrame
Row │ y
│ Int64
─────┼───────
1 │ 1
2 │ 4
3 │ 9
4 │ 16
5 │ 25
Will fix soon.