I'll try to rephrase my question:
How do I combine a dask.dataframe along with a function like zip?
assume we have a file named "accounts.0.csv" with the following data
id,names,amount
352,Dan,4837
387,Tim,208
42,Jerry,21
129,Patricia,284
i wrote this code
import dask.dataframe as dd
import itertools
from dask.threaded import get
df = dd.read_csv('accounts.0.csv')
dsk = {'a': (dd.read_csv,('accounts.0.csv')),
'b': (itertools.repeat,(True)),
'res': (zip, 'a'[id],'b')
}
get(dsk, 'res')
This code should generate something like this:
352, True
387, True
42 , True
129, True
how can i do this ?