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]: DataFrame var(), std(), skew() and kurt() ignore NaN with skipna=False #41873
With skipna=False, var(), std(), skew() and kurt() on a deferred Series should give NaN when the data has a missing value, like pandas. Beam returns a number instead when the NaN is in a partition together with other values:
std, skew and kurt behave the same, and so do DataFrame.var(skipna=False) and DataFrame.std(skipna=False). Seen on 2.77.0 and on master.
The partition moments in DeferredSeries.var, skew and kurtosis come from pandas std, sum and mean, which skip NaN, while the row count includes it. With skipna=True the NaN rows are dropped first, so only skipna=False is affected.
Issue Priority
Priority: 2 (default / most bugs should be filed as P2)
Activity
anishmehta24 commentedon Dec 2, 2026
.take-issue