- `detect_outliers_ecod` should be called with an numpy nd.array - if a pandas.Series is passed this should be handled as item access works with `iloc`: https://github.com/biosustain/growthcurves/blob/8709aecc34c2bfa51af57e92a5c572b0ef3460a5/src/growthcurves/preprocessing.py#L260-L261 ```python d = np.diff(N, prepend=N[0]) ``` - [ ] add test for pandas Series case - [ ] add test with missing values and capture error
detect_outliers_ecodshould be called with an numpy nd.array - if a pandas.Series is passed this should be handled as item access works withiloc:growthcurves/src/growthcurves/preprocessing.py
Lines 260 to 261 in 8709aec