Release: DataFramesMeta v 0.13.0

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.

4 Likes

may I ask what is breaking

Nothing is breaking, but @distinct is a new feature, so we can’t implement a 0.0.x version bump. When we hit 1.0, we will be allowed to have non-breaking minor releases. But my understanding is that pre-1.0 all minor releases are technically breaking.

1 Like

Major version zero (0.y.z) is for initial development. Anything MAY change at any time. The public API SHOULD NOT be considered stable.

my personal approach is to just keep increasing z until I have a breaking change, other wise people may need to change [compat] a lot. But either of us is right or wrong. In any case good to know no breaking changes!

1 Like

other wise people may need to change [compat] a lot.

Yes. I was concerned about that too, but my solution was to do releases less frequently. But it’s not a good solution! Cause then users don’t get bug-fixes and new features. So I think in the future we are going to power ahead until 1.0 (and make a roadmap…) with more frequent releases.

2 Likes