Writing Fast pandas Code: Vectorization Instead of apply and Loops | Wicked Smart Data