Python Vectorized Operations In Pandas