My apologies for the similar question asked previously. This question is in Python. But I can\'t find correct solution I have the following dataframe df1
Some