I am given a data set and I need to analyze the statistics of a column based on the groups formed from other column unique values. I could do it using groupby of pandas. But I want to use multiprocessing Pool map. The example is as below.
A B C
2 3 4
2 5 3
2 3 5
2 7 9
2 3 10
3 4 23
2 7 4
Based on A and B combination unique values, I need to get mean of column C.
A B C
2 3 4
2 5 3
2 3 5
2 7 9
2 3 10
3 4 23
2 7 4
Based on A and B combination unique values, I need to get mean of column C.
#df.groupby(['A', 'B'])['C'].mean()#worked, but want to use Pool.map(). I am unable to get the idea of solving it. Please give some pointers on this.