Pandas Create Dataframe Based On Another Dataframe To Csv