PD policz, ile elementów występuje w innej kolumnie

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