-3
The output of the method pivot_table
is a Dataframe, as can be seen in documentation. It is therefore sufficient to use the DataFrame
sort_values
. In your case:
impute_grps.sort_values(by = "winPlacePerc", ascending = False)
For more details, see the method documentation sort_values
Please replace the image with characters that can be copied
– Lucas
If any answers solved your problem, you could mark one of the answers as accepted. Understand the importance of this link: https://pt.meta.stackoverflow.com/questions/1078/como-e-por-que-aceitar-uma-reply
– Lucas