[Solved] how many countries have organised more than one edition of olympic games? using python pandas [closed]


You can try one of the 2 alternatives below.

df.groupby('country')['edition'].nunique().gt(1).sum()

or

(df.groupby('country')['edition'].nunique()>(1)).sum()

1

solved how many countries have organised more than one edition of olympic games? using python pandas [closed]