pandas reorder rows based on column of datetime code example Example: pandas reorder rows based on column df1.sort_values('9', inplace=True) print (df1)