I am trying to label the duplicates in my DataFrame based on their group, while having the full length data frame. Below is an example code.