A DataFrame probably isn’t the right object for Master. Better to use a Dict instead
julia> d = Dict([Master.ID[i] => Master.PRICE[i] for i in 1:nrow(Master)]);
julia> function add_all(row_strs, d)
sum(get.(Ref(d), row_strs, 0))
end;
julia> map(eachrow(Relationship)) do r
add_all(collect(r[2:end]), d)
end
3-element Array{Int64,1}:
216
220
78