PD CONNETS combien d'élément se produit dans une autre colonne

df['Counts'] = df.groupby(['Color'])['Value'].transform('count')
Hambo