Python Pandas How To Loop Through Operation