title: Python - Transpose/Pivot a column based based on a different column
body: <p>I searched it and indeed I found a lot of similar questions but none of those seemed to answer my case.</p>
  <p>I have a pd Dataframe which is a joined table consist of products and the countries in which they are sold.
  It's 3000 rows and 50 columns in size.</p>
  <p>I'm uploading a photo (only part of the df) of the current situation I'm in now and the expected result I want to achieve.</p>
  <p><a href="https://i.stack.imgur.com/Et3SQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Et3SQ.png" alt="enter image description here" /></a></p>
  <p>I want to transpose the 'Country name' column into rows grouped by the 'Product code name. Please note that the new country columns are not limited to a certain amount of countries (some products has 3, some 40).</p>
  <p>Thank you!</p>