I want to convert the name of last three columns into a new column called 'medal' and create a new column called 'no of medals' which is the corresponding value according to different medals
I know how to convert rows to columns by using pivot table, but no idea about how to do inversely
and what if there is a 'na' in gold/silver/...columns? raw data