User blog comment:Smarty Pants 264 Clash Royale/Damage to Cost Ratio (troops)/@comment-25856498-20161006140424/@comment-32638135-20161006144111

I have no idea either. Try looking at another blog post's table's code.