Skip to content

Commit

Permalink
remove @Assert
Browse files Browse the repository at this point in the history
  • Loading branch information
bkamins committed Oct 16, 2023
1 parent 713d70b commit 9ce1f97
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/abstractdataframe/iteration.jl
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,6 @@ function mapcols(f::Union{Function, Type}, df::AbstractDataFrame; cols=All())
else
picked = Set(names(df, cols))
apply = Bool[name in picked for name in names(df)]
@assert length(apply) == ncol(df)
end

# note: `f` must return a consistent length
Expand Down Expand Up @@ -554,7 +553,6 @@ function mapcols!(f::Union{Function,Type}, df::DataFrame; cols=All())
else
picked = Set(names(df, cols))
apply = Bool[name in picked for name in names(df)]
@assert length(apply) == ncol(df)
end

# note: `f` must return a consistent length
Expand Down

0 comments on commit 9ce1f97

Please sign in to comment.