Skip to content

Tag: dataframe

Add row values as new columns in a dataframe

I have a dataframe like follows: I want to convert it to something like: or The values in B which are repeated are column names whose values are in C column. I want to add all or some of them as the columns of the dataframe In fact the dataset is created by flattening a tree, there are more columns