Ways to speed up Python code for data science purposes
Things I care about a lot:


list comprehensions instead of loops
use apply + lambda functions when forced to iterate operations on pandas dataframes
use @tf.function decorator on top of TensorFlow functions to speed up computation
use as much SQL as possible when importing data from databases, to avoid doing the same stuff in Python