E_ADF_003 — ADF: NaN in input¶
The input series contains NaN values. ADF can't compute over missing
data; the result would be undefined.
How to fix¶
Drop or fill NaN values before testing:
Common causes¶
- Indicator outputs producing leading NaNs (e.g. SMA's first
period-1values). - Returns computed via
prices[1:] - prices[:-1]followed by reattaching to the original index, leaving NaN at position 0. - Joins / merges that left unmatched rows.