diff --git a/09_tabular.ipynb b/09_tabular.ipynb index b767040..fdaf24b 100644 --- a/09_tabular.ipynb +++ b/09_tabular.ipynb @@ -8598,7 +8598,7 @@ } ], "source": [ - "p = valid_xs_final['ProductSize'].value_counts(sort=False).plot.barh()\n", + "p = valid_xs_final['ProductSize'].value_counts(sort=False).sort_index().plot.barh()\n", "c = to.classes['ProductSize']\n", "plt.yticks(range(len(c)), c);" ] diff --git a/clean/09_tabular.ipynb b/clean/09_tabular.ipynb index 0daf9b8..3113e08 100644 --- a/clean/09_tabular.ipynb +++ b/clean/09_tabular.ipynb @@ -868,7 +868,7 @@ "metadata": {}, "outputs": [], "source": [ - "p = valid_xs_final['ProductSize'].value_counts(sort=False).plot.barh()\n", + "p = valid_xs_final['ProductSize'].value_counts(sort=False).sort_index().plot.barh()\n", "c = to.classes['ProductSize']\n", "plt.yticks(range(len(c)), c);" ]