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