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