Hi all,
I am pleased to announce a new release of DataFramesMeta.jl, v 0.13.0
The release contains a bug-fix that has been plaguing users for a whole now, where .+
and .*
would cause UndefVarErrors
. This has been fixed.
The release also contains a new feature, @distinct
, added by @Matthew . @distinct
(and itβs row-wise counterpart @rdistinct
) allow users to select distinct values from a data frame, just like disctinct
in dplyr
and duplicates drop
in Stata.
julia> df = DataFrame(a = [1, 1, 2, 2, 3, 3, -1, -1], b = [2, 2, 3, 4, 4, 4, 4, 4])
8Γ2 DataFrame
Row β a b
β Int64 Int64
ββββββΌββββββββββββββ
1 β 1 2
2 β 1 2
3 β 2 3
4 β 2 4
5 β 3 4
6 β 3 4
7 β -1 4
8 β -1 4
julia> @distinct df :a
4Γ2 DataFrame
Row β a b
β Int64 Int64
ββββββΌββββββββββββββ
1 β 1 2
2 β 2 3
3 β 3 4
4 β -1 4
julia> @rdistinct df :a^2
3Γ2 DataFrame
Row β a b
β Int64 Int64
ββββββΌββββββββββββββ
1 β 1 2
2 β 2 3
3 β 3 4
julia> @rdistinct df :a + :b
4Γ2 DataFrame
Row β a b
β Int64 Int64
ββββββΌββββββββββββββ
1 β 1 2
2 β 2 3
3 β 2 4
4 β 3 4
Hopefully the pace of releases picks up soon.