Tweeted By @rasbt
Great talk! Explains how to vectorize slow pandas code. Here: replacing .apply when working w conditional statements.
— Sebastian Raschka (@rasbt) January 10, 2020
Was guilty of using .apply myself a lot recently because I thought of it as elegant. Turns out my old & actually preferred method, numpy.where, is a lot faster! https://t.co/bFzRAMljqi