如果想找出DataFrame中所有列均为false的行,有什么简便语句么?

谁能给解释下,下面这个为什么报错?

df2 = [true false; true false]
all(eachrow(df2))

输出

TypeError: non-boolean (SubArray{Bool, 1, Matrix{Bool}, Tuple{Int64, Base.Slice{Base.OneTo{Int64}}}, true}) used in boolean context

Stacktrace:
 [1] _all(f::typeof(identity), itr::Base.Generator{Base.OneTo{Int64}, Base.var"#225#226"{Matrix{Bool}}}, #unused#::Colon)
   @ Base ./reduce.jl:1161
 [2] all
   @ ./reduce.jl:1152 [inlined]
 [3] all(itr::Base.Generator{Base.OneTo{Int64}, Base.var"#225#226"{Matrix{Bool}}})
   @ Base ./reduce.jl:1070
 [4] top-level scope
   @ In[156]:2
 [5] eval
   @ ./boot.jl:373 [inlined]
 [6] include_string(mapexpr::typeof(REPL.softscope), mod::Module, code::String, filename::String)
   @ Base ./loading.jl:1196



如果想找出DataFrame中所有列均为false的行,有什么简便语句么?
completecases和dropmissing貌似都是按照any来的。

julia> df2 = [true true; true false]
2×2 Matrix{Bool}:
1  1
1  0
julia> all.(x->x, eachrow(df2))
2-element BitVector:
1
0

谢谢。真棒。
我还看到了这个

要是有个dropna(how=‘all’),也挺香的。 :grimacing: