I need the most similar (max count) from column cluster-1 from column cluster-2.
Input - data
Output - data
I use the command: df.groupby(['cluster-1','cluster-2'])['cluster-2'].count() this command will give me count per occurrence in the column cluster-2. I need advice on how to proceed, thanks.

