Data Manipulation In Python Using Pandas In R