could you help me how I can count the occurence of the last index in pivot table?
Here is my code -- but the last column is returning me the Grand Total - based on the 1st index (A)
df.pivot_table(index=['A','B','C','D,'E','F','G']
, aggfunc={'G' : ['count',len]})



