4 ms·
Besides the speedup from using native numpy, theres also the potential for 50-100x speedup if your code isn't vectorized to begin with, and anywhere from 1-1000
by isoprophlex 6y ago
Besides the speedup from using native numpy, theres also the potential for 50-100x speedup if your code isn't vectorized to begin with, and anywhere from 1-1000x if theres a couple of joins in there that you can optimize.
But for the latter, see discussion on shifting the pd compute to a RDBMS elsewhere in these comments.