SyntaxFix
Write A Post
Hire A Developer
Questions
DF[:-n]
where n is the last number of rows to drop.
To drop the last row :
DF = DF[:-1]