Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Drop last n rows in Pandas Dataframe

df.drop(df.tail(n).index,inplace=True)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Drop #rows #Pandas #Dataframe
ADD COMMENT
Topic
Name
2+6 =