Pandas Create Dataframe Based On Another Dataframe Sort In Python