I'm working with Python and Pandas and have a table like this:
Name Team Fixture Line-up Min IN Min Out
0 Player 1 RAY J1 Starting 68
1 Player 2 RAY J1 Bench 74
2 Player 3 RSO J2 Starting 45
3 Player 4 RSO J2 Bench 45
I need to pivot the table making the rows of 'Fixture' as new columns containing the text of 'Line-up' + the number of Min IN and OUT. Then the result should be like this:
Name Team J1 J2
0 Player 1 RAY Starting - 68
1 Player 2 RAY Bench - 74
2 Player 3 RSO Starting - 45
3 Player 4 RSO Bench - 45
Is there any way to make it? Thanks in advance!