AIMPED
6
Well, this is because plotly.express
does some grouping of your DataFrame
under the hood. Sorting the df
before creating the figure solves this issue:
results = results.sort_values('guesses', axis=0)

See also
I imagine, the issue with the percentage is based on the same reason. Iβ not sure which values are used to calculate the percentage.