Vectorized computation applies an operation to all elements of an array in a single expression, without an explicit Python loop. NumPy runs the loop in compiled code, which is much faster. Broadcasting automatically stretches arrays of compatible shapes.
Example
prix_ttc = prix_ht * 1.2