Conteo de PD cuántos elementos ocurre en otra columna
df['Counts'] = df.groupby(['Color'])['Value'].transform('count')
Hambo
df['Counts'] = df.groupby(['Color'])['Value'].transform('count')
df['sex'].value_counts()
df['sex'].value_counts(normalize=True)
df['fare'].value_counts(bins=7)