You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this is super slow because you have to make Set([1, 2]) evaluated every time.
The following works
julia> transform(df, let
y = 1
:a => (t -> t .+ y) => :c
end)
1×3 DataFrame
Row │ a b c
│ Int64 Int64 Int64
─────┼─────────────────────
1 │ 1 2 2
julia> y
ERROR: UndefVarError: y not defined
We could add some sort of escape character, like ^ or $ for things that get evaluated before the function is defined.
The text was updated successfully, but these errors were encountered:
You often see
this is super slow because you have to make
Set([1, 2])
evaluated every time.The following works
We could add some sort of escape character, like
^
or$
for things that get evaluated before the function is defined.The text was updated successfully, but these errors were encountered: