I have the next df:
Match Count
Asren_Blue_Coached 879
Asren_Blue_NotCoached 721
Asren_RED_Coached 6567
Asren_RED_NotCoached 764
Asren_White_Coached 762
Asren_White_NotCoached 431
Asren_Yellow_Coached 375
Asren_Yellow_NotCoached 412
Hrew_Blue_Coached 689
Hrew_Blue_NotCoached 634
...
I want to add three new columns,
One column for each word before the underscore in column 'Match'
So, the expected output looks like this:
Match NewCol1 NewCol2 NewCol3 Count
Asren_Blue_Coached Asren Blue Coached 879
Asren_Blue_NotCoached Asren Blue NotCoached 721
Asren_RED_Coached Asren RED Coached 6567
Asren_RED_NotCoached Asren RED NotCoached 764
Asren_White_Coached Asren White Coached 762
Asren_White_NotCoached Asren White NotCoached 431
Asren_Yellow_Coached Asren Yellow Coached 375
Asren_Yellow_NotCoached Asren Yellow NotCoached 412
Hrew_Blue_Coached Hrew Blue Coached 689
Hrew_Blue_NotCoached Hrew Blue NotCoached 634
...
Do you know how can I do it?
I'm working with pandas in Jupyter