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

add length (or nrow) to describe

Open bkamins opened this issue 2 years ago • 2 comments

There are two natural cases in describe that are currently hard:

  1. get the number of rows;
  2. get the number of non-missing rows.

@nalimilan - would you have any preference here?

bkamins avatar Jul 01 '22 15:07 bkamins

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.

nalimilan avatar Jul 01 '22 16:07 nalimilan

OK - let us go for :nnonmissing for consistency

bkamins avatar Jul 11 '22 21:07 bkamins