print(applyParallel(df.groupby(df.index), tmpFunc))
print('regular version: ')
print(df.groupby(df.index).apply(tmpFunc))
print('ideal version (does not work): ')
print(df.groupby(df.index).applyParallel(tmpFunc))
Parallelize apply after pandas groupby