I am trying to determine the order of my countplot. This is the code I wrote:
df['new salery'].sort_values()
sns.set(rc={'figure.figsize':(8,6)})
sns.countplot(x='new salery',data=df,palette='viridis')
the plot I got is:

What I am trying to do is to put this order -
Low salary, Medium Salary -, Medium Salary, Medium Salary +, High Salary.
I would make the column an ordered
Categorical. From this,seabornautomatically follows the order:Alternatively, if you only want to do it for the plot, you can also use the
order-keyword within the function: