Leetcode Python Pandas Practice