Array Slicing In Python Using Pandas And Numpy