【发布时间】:2018-02-08 13:34:33
【问题描述】:
如何将频率图中的条按0、1、2、3、4的顺序排列,而不是下图所示的最高频率?
这是我使用的代码:
train_df.Fedu.value_counts().plot(kind='bar', alpha=0.6)
plt.title("Distribution of Father's education")
【问题讨论】:
标签: python python-2.7 python-3.x pandas matplotlib