You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[C++] Add options for handling NAs to stddev and variance #28368
Joris Van den Bossche / @jorisvandenbossche:
Yes, we are adding the option to skip nulls or not to several of the reduction kernels (default is to skip nulls, as is the current behaviour, and when not skipping nulls, any null in the input gives null as result). So it makes sense to add this to stddev/variance as well.
Rok Mihevc / @rok:
Currently ScalarAggregateOptions has skip_nulls and min_count (at least how many non-nulls should input have). Would it make more sense to add ddof to ScalarAggregateOptions or skip_nulls and min_count to VarianceOptions currently used by stddev and variance kernels.
Activity
asfimport commentedon Apr 30, 2021
Neal Richardson / @nealrichardson:
Another one like ARROW-9054 cc @rok
asfimport commentedon Apr 30, 2021
Antoine Pitrou / @pitrou:
Can you detail what the different options should be? We may propagate nulls but I'm not sure that's a very useful behaviour.
asfimport commentedon Apr 30, 2021
Rok Mihevc / @rok:
ARROW-12499 is about adding ScalarAggregateOptions to Any and All kernels.
@pitrou I suppose we need this to match expected behaviour in R - na.rm and pandas - skip_na.
asfimport commentedon May 3, 2021
Joris Van den Bossche / @jorisvandenbossche:
Yes, we are adding the option to skip nulls or not to several of the reduction kernels (default is to skip nulls, as is the current behaviour, and when not skipping nulls, any null in the input gives null as result). So it makes sense to add this to stddev/variance as well.
asfimport commentedon May 21, 2021
Rok Mihevc / @rok:
Currently
ScalarAggregateOptionshasskip_nullsandmin_count(at least how many non-nulls should input have). Would it make more sense to addddoftoScalarAggregateOptionsorskip_nullsandmin_counttoVarianceOptionscurrently used by stddev and variance kernels.asfimport commentedon Jun 10, 2021
Antoine Pitrou / @pitrou:
You could add
skip_nullsandmin_counttoVarianceOptions.asfimport commentedon Aug 26, 2021
David Li / @lidavidm:
This was duplicated by ARROW-13691 which has a PR up (and takes the approach suggested by Antoine).