I am trying to pmap a function over a DataFrame, probably I am missing something really obvious.
As per the example below, I would each DataFrameRow to be an element of the pmap, and each column value of the DataFrameRow to be set as an argument of the called function DoWork
df = DataFrame(A=[1,2,3], B=["a","b","c"])
function DoWork(a, b)
println("$a $b") #-> this will print 1 a, 2 b, 3 c
end
pmap(DoWork, df) #argh!
The DataFrame is populated from a database and I can’t change the way it is provided to me - I need to convert it.I tried various things like convert to a list of vector or a matrix with little luck. Is there any better way to do this?
Thanks