I have data like this
Column1 Column2 Column3
0 This Sushi is Awesome NaN NaN
1 NaN Id: 2261
2 NaN City: Tokyo
3 NaN Food: Positive
4 NaN Price: NaN
5 This food is really expensi... NaN NaN
6 NaN Id: 3`
7 NaN City: Osaka
8 NaN Food: Negative
9 NaN Price: Negative
i wrote code like this but i got error
pivoted = data.pivot(index='Column1',columns='Column2', values='Column3')
ValueError: Index contains duplicate entries, cannot reshape
pivot_table also doesnt work
I want to have output like this
0 Id City Food Price
1 This Sushi is Awesome 2261 Tokyo Positive NaN
2 This food is really expensi... 3 Osaka Negative Negative