pandas: pivot table inside multilevel dataframe
问题 I'm trying to pivot table, in order to transform some rows values in columns, so from this dataframe df_behave list date_time field value 1 0 2015-05-22 05:37:59 StudentID 129 1 2015-05-22 05:37:59 SchoolId 3 2 2015-05-22 05:37:59 GroupeId 45 2 3 2015-05-26 05:56:59 StudentID 129 4 2015-05-26 05:56:59 SchoolId 65 5 2015-05-26 05:56:59 GroupeId 13 6 2015-05-26 05:56:59 Reference 87 3 ...................... ...... ...... in order to achieve : list date_time StudentID SchoolId GroupId Reference