Data Manipulation In Python Using Pandas Apply Method