df.groupby('is_trans').count() # group data by "is_trans" and count others var df[['name','is_trans']].groupby('is_trans').count() # same as above but with specifi col df.is_trans.value_counts() # count haw many time a value is repeated in a col
df.groupby('is_trans').count() # group data by "is_trans" and count others var df[['name','is_trans']].groupby('is_trans').count() # same as above but with specifi col df.is_trans.value_counts() # count haw many time a value is repeated in a col