Pivot table, agg function to calculate a percentage per column

Hi there,
I have a question about the aggregation function of pivot table . Do you know any aggfunc to use to calculate a percentage per column?

thank you

When all fails, you can write your own. aggfunc can take lambdas or named functions, both individually or as a dict to map column(s) to their processing func

thank you for the response