Pandas Pivot Table add subsequent columns then divide by previous column
I have the following pandas pivot table: table = pd.pivot_table(df, index = ‘group’, columns = ‘levels’, values = ‘uid’, aggfunc = ‘count’, margins = True) There are three levels (level 1, level 2, and level 3). Basically I have individuals that progress through these levels, but I want to know what percentage of people make… Read More Pandas Pivot Table add subsequent columns then divide by previous column