I have mock dataframe consist of these 2 columns (characters and values), I want create a function which iterate the column "characters" based on its unique value