Unique rows in distributed table

Jakob
Thu, 26 Mar 2020 11:58:38 +0000
New to Julia

Hi,

how do I get the unique rows of a Distributed Table in JuliaDB?

df = table(["a", "a", "a", "b", "b"], ["x", "x", "y", "x", "x"], names = (:X1, :X2), chunks = 2)

julia> df
Distributed Table with 5 rows in 2 chunks:
X1   X2
────────
"a"  "x"
"a"  "x"
"a"  "y"
"b"  "x"
"b"  "x"

Ideally, the output would look like this (i.e. be another Distributed Table):

Distributed Table with 3 rows in 2 chunks:
X1   X2
────────
"a"  "x"
"a"  "y"
"b"  "x"

Best
Jakob

2 posts - 1 participant