Using DataFramesMeta.jl [1], the code from the first example turns out pretty similar:
using DataFramesMeta, Statistics
@chain mtcars begin
@select :Cyl :HP
groupby(:Cyl)
@transform _ begin
:dumb_result = myarbitraryfunc.(:HP)
:demeaned = :HP .- mean(:HP)
end
end
Comments
As a comparison to another language: for Julia there is DataFrames.jl: https://dataframes.juliadata.org/stable/
Comparison to dplyr, ...: https://dataframes.juliadata.org/stable/man/comparisons/#Com...
Comparison to Pandas: https://dataframes.juliadata.org/stable/man/comparisons/#Com...
Using DataFramesMeta.jl [1], the code from the first example turns out pretty similar:
(mtcars is from RDataSets.jl)[1] https://juliadata.github.io/DataFramesMeta.jl/stable/dplyr/