Does anyone know how to transform the following data frame?
value | name | |
---|---|---|
1 | florida | name |
2 | parkway | address |
3 | Tampa | city |
into this one using Pandas library?
name | address | city | |
---|---|---|---|
1 | florida | parkway | Tampa |
Just need to ignore indexes. Values from column name should become new columns and the final data frame should contain one row with corresponded values from the original value
column.
P.S. I've already seen this one and this. But could not find an answer to my question there.