bring the rows with particular value in a column to top in pandas code example Example: panda select rows where column value inferior to df.loc[df['column_name'] == some_value]