Speeding up Pandas GroupBy Apply by using NumPy instead | Hacker News Reader