DataFrames.jl
DataFrames.jl copied to clipboard
add length (or nrow) to describe
There are two natural cases in describe
that are currently hard:
- get the number of rows;
- get the number of non-missing rows.
@nalimilan - would you have any preference here?
Computing the number of rows doesn't sound too useful as it's the same for all columns. But indeed computing the number of non-missing entries sounds useful and even if length(::SkipMissing)
(https://github.com/JuliaLang/julia/issues/42672) was implemented it could make sense to support e.g. :nonmissing
or :nnonmissing
for clarity.
OK - let us go for :nnonmissing
for consistency