neuniversity / ALY6140

1 stars 3 forks source link

Wanting to sort data by day of the week #48

Open ZelingJiang opened 5 years ago

ZelingJiang commented 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?

ThatkidfromA commented 5 years ago

Hi, Have you tried using df.reindex_axis(sorted(df.columns),axis=1)