From 8d4ab6bb949cfadad913a3e60655bda623086f13 Mon Sep 17 00:00:00 2001 From: Michael Krabbe Borregaard Date: Thu, 23 Aug 2018 16:51:15 +0200 Subject: [PATCH] Also fix broadcast on dict --- src/series.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/series.jl b/src/series.jl index bef2ee32..702c210a 100644 --- a/src/series.jl +++ b/src/series.jl @@ -599,7 +599,7 @@ function groupedvec2mat(x_ind, x, y::AbstractArray, groupby, def_val = y[1]) for i in 1:length(groupby.groupLabels) xi = x[groupby.groupIds[i]] yi = y[groupby.groupIds[i]] - y_mat[getindex.(x_ind, xi), i] = yi + y_mat[getindex.(Ref(x_ind), xi), i] = yi end return y_mat end