From 51ee6d1f722d9d9cbd47df38eadcd759da38aad1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bogumi=C5=82=20Kami=C5=84ski?= Date: Tue, 10 Oct 2023 09:19:01 +0200 Subject: [PATCH] fix typo --- src/abstractdataframe/iteration.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/abstractdataframe/iteration.jl b/src/abstractdataframe/iteration.jl index 2ce68aae6..a0be9b581 100644 --- a/src/abstractdataframe/iteration.jl +++ b/src/abstractdataframe/iteration.jl @@ -470,7 +470,7 @@ function mapcols(f::Union{Function, Type}, df::AbstractDataFrame; cols=All()) seenscalar = false seenvector = false for (v, doapply) in zip(eachcol(df), apply) - fv = apply ? f(v) : copy(v) + fv = doapply ? f(v) : copy(v) if fv isa AbstractVector if seenscalar throw(ArgumentError("mixing scalars and vectors in mapcols not allowed"))