As I was trying to figure out another question, I found something that might be a bug (or perhaps a documentation bug) in Query.jl. According to the docs:
The
@mutate
command has the formsource |> @mutate(args...)
. β¦
Allargs...
are executed in order, and the result set of the previous mutation is the source of each current mutation.
However, in the following example, the old values of a
seem to be used.
julia> DataFrame(a=[1,2], b=[0, 3]) |>
@mutate(a=_.a/2, b = _.a + _.b)
2x2 query result
a β b
βββββΌββ
0.5 β 1
1.0 β 5