I think I found a more optimised way by using groupby.
for group in groupby(iris, :species)
group[ismissing.(group.petal_length), :petal_length] .= mean(skipmissing(group.petal_length))
end
I think I found a more optimised way by using groupby.
for group in groupby(iris, :species)
group[ismissing.(group.petal_length), :petal_length] .= mean(skipmissing(group.petal_length))
end