title: How to pivot a pandas Dataframe in Python?
body: <p>I am trying to pivot the below dataframe. I want the column names to be added as rows. First row is a statis one but the Column names are not static since they will be calculated for the all numerical columns from the data frame. Could you please help.</p>
  
  <p>This is my data frame:</p>
  
  <p><a href="https://i.stack.imgur.com/AHbSv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AHbSv.png" alt="enter image description here"></a></p>
  
  <p>Expected Dataframe:</p>
  
  <p><a href="https://i.stack.imgur.com/rcuzs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rcuzs.png" alt="enter image description here"></a></p>