I\'m not sure how to approach this problem since I\'m a beginner with pandas.
I have this dataframe:
col1 col2 0 a 1 1 a 2 2 a 3