Most efficient way to compute number of rows in each group using JuliaDB?

xiaodai
Sun, 01 Sep 2019 08:01:37 +0000
Data

Suppose a is a JuliaDB table, is the below the best (most efficient) way to compute the number of rows per group?

using LambdaFn, DataFrames, JuliaDB
a = DataFrame(Column1 = rand(["a", "b", "c"], 1_000), b = rand(1000)) |> JuliaDB.table

@time JuliaDB.groupby(@λ(size(_,1)), a, :Column1)

1 post - 1 participant