From e27eb1fbdc0e71491e5223eb89716e92a9af0362 Mon Sep 17 00:00:00 2001 From: Fede Date: Mon, 29 Apr 2024 18:15:45 +0300 Subject: [PATCH] Rollback pandas map to applymap until we remove support for py3.8 --- julearn/transformers/confound_remover.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/julearn/transformers/confound_remover.py b/julearn/transformers/confound_remover.py index c7d522c83..4a9327ebe 100644 --- a/julearn/transformers/confound_remover.py +++ b/julearn/transformers/confound_remover.py @@ -256,7 +256,7 @@ def _apply_threshold(self, residuals: pd.DataFrame) -> pd.DataFrame: if self.threshold is not None: # Accounting for correlated rounding errors for very small # residuals - residuals = residuals.map( # type: ignore + residuals = residuals.applymap( # type: ignore lambda x: 0 if abs(x) <= self.threshold else x ) return residuals