Leetcode Coding Exercise On Numpy And Pandas Difference Between Loc