stripped.groupby('ClientHostID').first().div(stripped.groupby(
    'ClientHostID').last()).reset_index().rename(columns={'LoginDaysSum':
    'ratio'})
Get ratio between different members of a column in the best performance