Typescript Array Shift Method Pandas Dataframe Index