I\'m trying to split a data frame into chunks of 2000 rows, I found this code, I\'m new to python btw, it works perfectly but the last data frame