There are three columns in a dataFrame Ticker, Attribute, and Value.
The original dataFrame can be seen here
I want to set the Attribute values as a column which can easily be done by setting it as an index and then taking the transpose but the problem is that I want to keep the Ticker as a column when I take the transpose it become the row. When I take Attribute as an index and take its transpose
When I set both as an index and then take transpose it looks something like this which I don't want When both the Attribute and Ticker taken as index and transposed
What I want is this The required output