Python Count Duplicate Rows In Dataframe Sort Python Array To String