Statement:
MIS_topN=dfpi [I] pivot_table (columns=[u] 'in production', the index=[u 'PFP'], values=[u 'no', u 'number'])
But I want to make production month in the first row, rankings and number in the second row
The desired effect:
CodePudding user response:
MIS_topN=dfpi [I] pivot_table (columns=[u 'no', u 'number'], index=[u 'PFP'], values=[u] 'in production')Then the other way around
CodePudding user response:
The other way around data is wrongCodePudding user response: