Typescript Array Shift Method Pandas Python Dataframe