'Transposing a dataframe with column 0 entries as new column names and column 1 entries as their respective values

I would like to change the dataframe such that the values in column 0 are new columns with there repective values coming from same index at column 1 for example for column name Agreement Number its value would be 59598840.So basically transposing this dataframe Could anybode tell how to do it?

Making the elements at column 0 as column names with there respective values at column 1



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source