dfPiv = dd.pivot_table(df = df, index = \'ENTRID\', columns = \'DGBRAID\', values=\'summe\', aggfunc = \'sum\') # dask array nr 2 darr2 = transpose(dfPiv) # dask array