Perform a calculation as a new column on multiindex dataframe
I have the following multiindex dataframe: MSISDN_COUNT NAME DIM1 SEGMENT JAN22 N Detractor 307 Passive 198 Promoter 1256 Y Detractor 237 Passive 161 Promoter 1096 FEB22 N Detractor 313 Passive 222 Promoter 1260 Y Detractor 261 Passive 169 Promoter 1155 I want to create a new column, which will be calculated for each NAME and… Read More Perform a calculation as a new column on multiindex dataframe