这可能是重复的问题,但是简单的答案和直接答案可能会帮助很多人,
我有一个数据框df,其中包含以下列:
months knowledgebank inventory advisory activities
0 november 415 431 517 506
1 august 285 346 225 226
2 september 383 411 365 381
3 june 589 532 526 559
4 may 695 651 557 624
5 february 467 339 340 453
6 january 821 501 744 711
7 december 554 432 640 384
8 july 484 503 422 494
9 april 512 390 422 500
10 march 360 387 267 403
11 october 462 233 200 322
我想对从一月到十二月的月份列进行排序
为:
months knowledgebank inventory advisory activities
0 january 821 501 744 711
1 february 467 339 340 453
. .
. .
. .
11 december