Feb-02-2018, 07:46 PM
df2 = pd.DataFrame({'id_user':[1,2,3,4,4,5,5], 'cust_user':[11,22,33,44,44,55,55], 'information':['phon','phon','phone','phone1','phone','phone1','phone'], 'value': [1, '01.01.00', '01.02.00', 2, '01.03.00', 3, '01.04.00']}) df2 df2.pivot(index=['cust_user','id_user'], columns='information', values='value')
Wrong number of items passed 7, placement implies 2.. any link to solve this is appreciated .