I have the following DataFrame containing song names, their peak chart positions and the number of weeks they spent at position no 1:
In case, if the dtypes of 'Peak' and 'Week' are not 'int' or 'float', then use the following command.
df.convert_objects(convert_numeric=True).sort_values(['Peak', 'Weeks'], ascending=[True, False], inplace=True)