I would like to convert the name value in columns Name into Name columns and convert the rest value in one rows. I try to use Pivot, but is not working very well for my problem.
Do you have some idea ?
Input :
dict_value = {
'Name' : ['Pierre', 'Paul'],
'Age' : [10,20],
'City' : ['NY', 'PR']}
df = pd.DataFrame(dict_value)
Output :

