I have the following DataFrame containing song names, their peak chart positions and the number of weeks they spent at position no 1:
df.sort(['Peak', 'Weeks'], ascending=[True, False], inplace=True)
If you want the sorted result for future use, inplace=True is required.
inplace=True