Skip to content

Commit

Permalink
Rollback pandas map to applymap until we remove support for py3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
fraimondo committed Apr 29, 2024
1 parent 26049e8 commit e27eb1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion julearn/transformers/confound_remover.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit e27eb1f

Please sign in to comment.