SQL-like group by and aggregation using DataFrame in Python | Hacker News Reader