Vectorization (Pandas)

Vectorization is applying an operation to a whole Series or DataFrame at once instead of looping row by row. pandas runs these operations in fast compiled…