小编Reb*_*cca的帖子

如何在 python 中按分类顺序排序月份,即一月、二月、三月等......?

我正在创建一个在 x 轴上有“月份”的条形图,但是它们以随机顺序显示,我如何对月份进行逻辑排序,即一月、二月、三月...

这是我的代码...

    plt.figure(figsize=(15,10))
    sns.countplot(x=boeing_df.order_month);
    plt.title('Most Popular Order Month');ype here
Run Code Online (Sandbox Code Playgroud)

TIA

python dataframe pandas jupyter

2
推荐指数
1
解决办法
61
查看次数

标签 统计

dataframe ×1

jupyter ×1

pandas ×1

python ×1