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
window transform: strict median/deviation/variance/pXX check missing values at the wrong rows when there are several series #2471
With strict: true, the median, deviation, variance and pXX window reducers look for missing values at the within-series position instead of the row index, so any series that does not occupy rows 0..n-1 (a second z series, a later facet) gets gaps in the wrong places.
Series "a" has no missing values but loses its last window, and series "b" gets values for the two windows that contain null.
Tested with @observablehq/plot 0.6.19 and main 2245188, Node.js v26.13.0.
In reduceAccessor in src/transforms/window.js, v takes a row index but the strict NaN counting calls v(i) and v(i + k - 1); it should be v(I[i]) and v(I[i + k - 1]).
Activity