1
如何按照0,1,2,3,4的順序排列頻率圖中的條而不是如下圖所示的最高頻率?如何在python中以matplotlib的順序排列條形圖?
這是我使用的代碼:
train_df.Fedu.value_counts().plot(kind='bar', alpha=0.6)
plt.title("Distribution of Father's education")
如何按照0,1,2,3,4的順序排列頻率圖中的條而不是如下圖所示的最高頻率?如何在python中以matplotlib的順序排列條形圖?
這是我使用的代碼:
train_df.Fedu.value_counts().plot(kind='bar', alpha=0.6)
plt.title("Distribution of Father's education")
這工作。非常感謝您的幫助 –
@DoubtDhanabalu歡迎您。快樂的編碼。 –