sparkbyexamples.com
Pandas Drop Last N Rows From DataFrame
To drop the last n rows from the Pandas DataFrame use either iloc[], drop(), slicing[] and head() methods. You can also use the drop() function to drop
Naveen Nelamali