DataFrames.jl icon indicating copy to clipboard operation
DataFrames.jl copied to clipboard

Add `findcols`

Open bkamins opened this issue 2 years ago • 1 comments

What do you think about adding the following function:

findcols(predicate, df::AbstractDataFrame) = findall(predicate, eachcol(df))

Maybe such function would be more readable than using predicate.(eachcol(df)) for column selection?

bkamins avatar Dec 03 '22 21:12 bkamins

x-ref https://github.com/JuliaData/DataFrames.jl/issues/2508

bkamins avatar Dec 04 '22 14:12 bkamins