From 3c8b31cb39e26b3ba99e98d8f6e23796b6b39379 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bogumi=C5=82=20Kami=C5=84ski?= Date: Tue, 10 Oct 2023 08:59:05 +0200 Subject: [PATCH] make naming consistent --- src/abstractdataframe/iteration.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/abstractdataframe/iteration.jl b/src/abstractdataframe/iteration.jl index fb3b96af6..2ce68aae6 100644 --- a/src/abstractdataframe/iteration.jl +++ b/src/abstractdataframe/iteration.jl @@ -559,8 +559,8 @@ function mapcols!(f::Union{Function,Type}, df::DataFrame; cols=All()) vs = AbstractVector[] seenscalar = false seenvector = false - for (v, toapply) in zip(eachcol(df), apply) - fv = toapply ? f(v) : v + for (v, doapply) in zip(eachcol(df), apply) + fv = doapply ? f(v) : v if fv isa AbstractVector if seenscalar throw(ArgumentError("mixing scalars and vectors in mapcols not allowed"))