Standard Deviation Python Dataframe Sorting