unfortunately this Add calculated column to a pandas pivot table doesnt help me
My code:
table = pd.pivot_table(df,index=['JOBFAMILIE1', 'POS_AUSPR1'],
columns=['GESCHL'],
values=['GESAMTDIREKT'],
aggfunc={'GESAMTDIREKT': [np.mean,np.count_nonzero]},
fill_value ="-")
Resulting Table:
Jan
now i need to compute the difference of mean "männlich" and "weiblich"