Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Whatever
drop the last row of a dataframe
David
Programming language:
Whatever
2021-07-17 10:47:32
0
Q:
drop the last row of a dataframe
Johnny Appleseed
Code:
Whatever
2021-09-15 13:32:38
df.
drop
(df.tail(n).
index
,inplace=
True
) #
drop
last n
rows
2
Tags
data
row
dataframe
last
Related
gspread get last row
print last n rows of dataframe
dataframe row
abap last row in loop
dataframe of one row
how to remove last 2 rows in a dataframe
location of last row dataframe
New to Communities?
Join the community