Skip to content

Commit

Permalink
delete nonuniquekey() method
Browse files Browse the repository at this point in the history
it's not used and it is no loner faster than nonunique()
  • Loading branch information
alyst committed Aug 25, 2015
1 parent e64679c commit e697c4b
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/abstractdataframe/abstractdataframe.jl
Original file line number Diff line number Diff line change
Expand Up @@ -621,17 +621,6 @@ unique!(df) # modifies df
"""
(unique, unique!)

function nonuniquekey(df::AbstractDataFrame)
# Here's another (probably a lot faster) way to do `nonunique`
# by grouping on all columns. It will fail if columns cannot be
# made into PooledDataVector's.
gd = groupby(df, _names(df))
idx = [1:length(gd.idx)][gd.idx][gd.starts]
res = fill(true, nrow(df))
res[idx] = false
res
end

# Count the number of missing values in every column of an AbstractDataFrame.
function colmissing(df::AbstractDataFrame) # -> Vector{Int}
nrows, ncols = size(df)
Expand Down

0 comments on commit e697c4b

Please sign in to comment.