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
bug: @egen and @collapse can not summarize over missing values in columns? #190
The issue is that all values in a group are missing. So when we do skipmissing, the result will be an empty vector. We may need to special case this. I think we need to return missing in all these cases.
Related: I hit the same root cause from the other side in #233 — mean and sum return NaN and 0.0 on an all-missing group rather than erroring, so the failure is silent there.
Both look like the same underlying thing: the output column is typed from the non-missing element type (Union{Missing,Float64} in, Float64 out), so missing cannot be represented. Widening the result when the input is missing-typed would let minimum/maximum return missing instead of needing an init, and fix the silent cases at the same time.
Activity
korenmiklos commentedon Aug 13, 2024
The issue is that all values in a group are missing. So when we do
skipmissing, the result will be an empty vector. We may need to special case this. I think we need to returnmissingin all these cases.korenmiklos commentedon Aug 5, 2026
Related: I hit the same root cause from the other side in #233 —
meanandsumreturnNaNand0.0on an all-missing group rather than erroring, so the failure is silent there.Both look like the same underlying thing: the output column is typed from the non-missing element type (
Union{Missing,Float64}in,Float64out), somissingcannot be represented. Widening the result when the input is missing-typed would letminimum/maximumreturnmissinginstead of needing aninit, and fix the silent cases at the same time.Return missing from aggregators when a group has no usable values