Relative Content

Tag Archive for pandaspivot-table

How to get multiple metrics per category value in pandas crosstab?

My current pandas crosstab is repeating the crosstab laterally (column wise) per metric. I would like to have the metrics repeated row-wise per row column category instead. The below illustration (current output vs desired output) shows the structural change I’m after. Appreciate your advice.