Updating to get the correct answer: My data frame is in the format. Below is just the dummy data
A         B
'Animal'  'Tiger'
'Speed'   '1'
'Mammal'  'Yes'
'Animal'  'Elephant'
'Speed'   '10'
'Mammal'  'No'
'Animal'  'Leapord'
'Speed'   '30'
'Mammal'  'No'
Desired output
Animal   Speed Mammal
Tiger    1     Yes
Elephant 10    Yes
Leapord  30    yes
how can I achieve this?
 
     
    