1df = df.groupby('domain')['ID'].nunique()
2
3print (df)
4domain
5'facebook.com' 1
6'google.com' 1
7'twitter.com' 2
8'vk.com' 3
9Name: ID, dtype: int64
1pd.value_counts(df.Account_Type)
2
3Gold 3
4Platinum 1
5Name: Account_Type, dtype: int64