So I ran into some issues while trying to sort the data frame. My code gets data that only allows for 1000 rows at a time and then it send a continuation URL which my script fol