Skip to content
This repository has been archived by the owner on May 5, 2019. It is now read-only.

Commit

Permalink
Import Base.unique! on Julia 0.7
Browse files Browse the repository at this point in the history
Fixes a failure on nightlies.
  • Loading branch information
nalimilan committed Jun 18, 2017
1 parent 302d779 commit 6bd6874
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/abstractdatatable/abstractdatatable.jl
Expand Up @@ -586,6 +586,10 @@ end
nonunique(dt::AbstractDataTable, cols::Union{Real, Symbol}) = nonunique(dt[[cols]])
nonunique(dt::AbstractDataTable, cols::Any) = nonunique(dt[cols])

if isdefined(Base, :unique!) # Julia >= 0.7
import Base.unique!
end

unique!(dt::AbstractDataTable) = deleterows!(dt, find(nonunique(dt)))
unique!(dt::AbstractDataTable, cols::Any) = deleterows!(dt, find(nonunique(dt, cols)))

Expand Down

0 comments on commit 6bd6874

Please sign in to comment.