Open ZelingJiang opened 5 years ago
My table is in a strange order: Friday, Monday, Wednesday.... And I want it sort by: Monday, Tuesday, Wednesday.... Could anyone help me complete this function?
Hi, Have you tried using df.reindex_axis(sorted(df.columns),axis=1)
My table is in a strange order: Friday, Monday, Wednesday.... And I want it sort by: Monday, Tuesday, Wednesday.... Could anyone help me complete this function?