Python sorted plot
<p>I want to use seaborn to perform a <code>sns.barplot</code> where the values are ordered e.g. in ascending order.</p>

<p>In case the <code>order</code> parameter of seaborn is set the plot seems to duplicate the labels for all non-NaN labels.</p>

<p>Trying to pre-sort the values like <code>mydf.sort_values(['myValueField'], ascending=False)</code> does not change the result as seaborn does not seem to interpret it.</p>

<p>Do you save the changes by <code>pd.sort_values</code>? If not, probably you have to add the <code>inplace</code> keyword:</p>

<p><code>mydf.sort_values(['myValueField'], ascending=False, inplace=True)</code></p>

python sorting plot bar-chart seaborn