Python Performing A Function On Column Values Based On Index

Python Performing A Function On Column Values Based On Index