I have a problem to tweak the formula of the pandas Pivot. Below is my sample table after I do the pivot.