Take home: use numpy instead of pandas if you have numerous calculations.

 

Source: https://engineering.upside.com/a-beginners-guide-to-optimizing-pandas-code-for-speed-c09ef2c6a4d6