Compute CTR and metrics with pandas | Snapchat Interview Question