Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

all but last row of dataframe

#drop last n rows of dataframe 
df = df.drop(df.tail(n).index)
Source by www.kite.com #
 
PREVIOUS NEXT
Tagged: #row #dataframe
ADD COMMENT
Topic
Name
2+5 =