Happy Number Leetcode Python Pandas Practice